User`s manual

FX communication
Commands 8
8-19
8
2 ) Specification Example 1
To transmit the data stored in data registers D100 and D101 from the programmable
controller (when the station number is 0, and data is specified in word units)
Program example
Programmable
controller
M8127
Write processing
Computer
Programmable
controller
Set ON if a transmission
error occurs
S
T
X
30H30H
0 0
45H46H
F E
32H31H
1 2 3 4
33H 35H34H
02H
E
T
X
32H39H
9 2
03H
The PLC number "FE" is automatically added by the programmable controller.
36H37H38H
5 6 7 8
The 4 hexadecimal digits of
each word are transmitted
in ASCII, starting with the
most significant digit.
D8127
D8128
100
2
On-demand
command
M8128
M8129
ON/OFF
OFF
D100
D101
1234H
5678H
X000
M8129
M8000
M8002
PLS M0
M0 M8127
H1234 D100
FNC 12
MOV
H5678 D101
RST M8128
RST Y000
RST Y001
K100 D8127
FNC 12
MOV
K2 D8128
FNC 12
MOV
SET Y000
SET Y001
END
Data transmission set to word units.
Start command signals a pulse.
Transmission data is set.
On-demand error flag is reset
(cannot start if M8128 is ON)
On-demand is started by specifying transmission data
area head address and data length.
Confirming on-demand error, normal/abnormal external
output is set.
M8127 M8128
M8128
0
33
7
3
40
· · · · · · · · ·
· · · · · · · · ·
· · · · · · ·
· · · · · · · · ·
· · · · · · ·
· · · · · · ·
M8128 OFF : Normally transmitted.
ON : Data is not transmitted due to error.
FNC 12
MOV