FP2 Serial Data Unit
Sample Programs
8 − 10
8.1 Sample Programs
R101
, K0 , DT20 , K3 , K1
X1
Y10
F151 WRT
R102
C1000
CT 1000
K5
X0R101
Y10
Y11
Specifies the FP2 serial data unit in
slot no.0.
The contents of 3−word of data
register DT20 to DT22
is written to the shared memory address 1 to 3.
Command sending counter
The data is written to address 1 of
the shared memory (the sent buffer
of CH1).
When reception and reading of the
data have been completed, Y11 is
turned on, and the received buffer is
cleared.
After sending has begun, the send-
ing directive continues until sending
has been completed.
, K0 , K251 , K8 , DT200
F150 READ
DF
Data is read from address 251 of the
shared memory (received buffer of
CH1) at the timing of the reception
completed flag (X1).
Specifies the FP2 serial data
unit in slot no.0.
is read to the data register DT200 to DT207.
The contents of 8−word of shared memory
address 251 to 258
X1