Panasonic FP2 User Manual page 94

Serial data unit
Hide thumbs Also See for FP2:
Table of Contents

Advertisement

Sample Programs
8.1
Sample Programs
F150 READ
Specifies the FP2 serial data unit in
slot no.0.
The contents of the word indicated by
I0 of the shared memory address 251
is read to the data register DT100.
R9010
F27 —
F70 BCC
F71 HEXA
R9010
F27 —
F32 %
F0 MV
F1 DMV
R9010
F32 %
F60 CMP
R100
F112 WBSR
F112 WBSR
R9010
F60 CMP
R900B
R900B
8 − 8
, K0
, K251
, I0K0 , DT100
, DT 50
, K 2
, DT 53
, K 2
, DT 100
, DT 53 , DT 54
, DT 54
, K 1
, DT 55
, DT 50
, K 2
, DT 56
, DT 56
, K 2
, DT 57
, DT 57
, I0
,I0DT100 , DT 60
, DT 50
, K 2
, DT 58
R900B
, DT90015 , K 1
, DT 60
, DT61
, DT 60
, DT61
, DT 60
, DT 55
Data indicating number of received
words is read from address 251 of the
shared memory (received buffer of
CH1).
Block check code is calculated.
− Number of bytes received is calcu-
lated (not including BCC).
− Block check code is calculated.
− Result is converted from HEX to
hexadecimal ASCII code.
BCC segment is extracted from re-
ceived data.
Number of received data bytes is
judged to be even or odd.
R100
Number of received data bytes is
odd.
If odd, data is shifted one byte to
the right.
BCC is judged as OK or NG.
R101
S
BCC OK
R102
S
BCC NG
( RET )
FP2 Serial Data Unit

Advertisement

Table of Contents
loading

Table of Contents