C500BC031 Omron, C500BC031 Datasheet - Page 120

no-image

C500BC031

Manufacturer Part Number
C500BC031
Description
BACKPLANE
Manufacturer
Omron
Datasheet

Specifications of C500BC031

Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Example Host Computer Program
5-3
10 OPEN ”CQM1:E37NN” AS #1
20 NG=0:I=0:CNT=0
30 INPUT ”TEST DATA INPUT-----”;TD$
40 TC$=”@00WD0001”
50 TC$=TC$+TD$
60 GOSUM *FCSSET
70 TXD$=T$+FCS$+”*”+CHR$(13)
80 PRINT
90 PRINT #1,TXD$;
100 IF LOC(1)<>0 GOTO 140
110 CNT=CNT+1
120 IF CNT=1000 GOTO 1000
130 GOTO 100
140 INPUT #1,RXD$
150 R$=MID$(RXD$,6,2)
160 IF R$<>”00” GOTO 2000
170 PRINT ”RXD$=”;RXD$+”
180 GOTO 20
1000 REM
1005 CNT=0
1020 ER$(NG)=”TIME UP”
1025 NG=NG+1
1030 IF NG=3 GOTO 3000
1040 GOTO 80
2000 REM
2020 ER$(NG)=RXD$+”
2025 NG=NG+1
2030 IF NG=3 GOTO 3000
2040 GOTO 80
3000 REM
3010 PRINT ”
3020 PRINT ”RXD$-1=”;ER$(0)
3030 PRINT ”RXD$-2=”;ER$(1)
3040 PRINT ”RXD$-3=”;ER$(2)
3050 GOTO 20
4000 REM
4010 *FCSSET
4020 L=LEN(T$)
4030 A=0
4040 FOR J=1 TO L
4050 TJ$=MID$(T$,J,1)
4060 A=ASC(TJ$) XOR A
4070 NEXT J
4080 FCS$=HEX$(A)
104
Example Host Computer Program
”TXD$=”;TXD$
*****TIME UP*****
*****ERROR RESPONSE****
*****ERROR MESSAGE*****
*****
AN ERROR OCCURRED
FCS CALCULATION
. ........................
. .......................
. .................
. .................
This example program causes arbitrary data to be written from the host comput-
er to DM 0001. A timer is included to retry transmission if the timer times out. An
error message is displayed after 3 time outs.
• OMRON FC-986 Host Computer
Host Link Unit:
C200H-LK101-PV1/LK201-V1/LK202-V1
3G2A5-LK101-(P)EV1/LK201-EV1/LK103(-P)
C500-LK203
3G2A6-LK101-(P)EV1/LK201-EV1/LK202-EV1
. .............
. .............
. .............
. ............
*****
NG”
OK”
. .
Opens RS-232C
Inputs test data
Calculates FCS.
Transmission
Determines whether data was received.
The value of CNT determines the timer setting.
Determines whether communications were completed normally.
Sets 3 retries.
Sets 3 retries.
.
Section 5-3

Related parts for C500BC031