D-73
FX Series PLC User's Manual - Data Communication Edition
Computer Link
7 Commands
7.13 On-demand Function
A
Common Items
B
N:N Network
C
Parallel Link
D
Computer Link
E
Inverter
Communication
F
Non-Protocol
Communication
(RS/RS2 Instruction)
G
Non-Protocol
Communication
(FX
2N
-232IF)
H
Programming
Communication
I
Remote
Maintenance
Apx.
Discontinued
models
IMPORTANT
Do not use the on-demand function when the system configuration is not 1-to-1 type.
If the on-demand function is used in the multi-drop link system in which the computer and PLC CPUs have
the 1-to-N configuration, the transfer data and on-demand send data in the control procedure format 1 or 4
are destroyed, and normal data sending is not possible.
2. Specification example 1
When sending the data stored in the data registers D100 and D101 by a trigger from a sequence program
(when the station number is 0 and the data unit to be sent is set to "word")
Sequence program example
PLC
M8127
Writes data to be
sent and amount of
data to be sent.
It turns ON when an error is
included in the specified
value for sending.
S
T
X
30
H
30
H
0 0
45
H
46
H
F E
32
H
31
H
1
2
3
4
33
H
35
H
34
H
02
H
E
T
X
32
H
39
H
9 2
03
H
The PLC number "FE" is automatically added by the PLC.
36
H
37
H
38
H
5
6
7
8
Data is sent in 4-bit units
starting from highest-order bits.
D8127
D8128
100
2
On-demand
command
[1]
[2]
M8128
M8129
ON/OFF
OFF
D100
D101
1234H
5678H
Computer side
PLC side
X000
M8000
M8002
PLS M0
M0 M8127
H1234 D100MOV
H5678 D101MOV
RST M8128
RST Y000
RST Y001
K100 D8127MOV
K2 D8128MOV
SET Y000
SET Y001
END
The data unit is set to "word" value.
The startup command is the pulse operation
type.
Data to be sent is set.
The on-demand error flag is reset.
(The on-demand function is disabled while
M8128 is ON.)
The head device number storing the data to be
sent and the amount of data are specified, and
the on-demand function is started up.
On-demand error is checked for, and the check
result is output.
M8127 M8128
M8128
0
33
7
3
40
M8128 OFF:
ON:
Data is sent normally.
Data is not sent because an
error occurred.
M8129
........
........
........
........
........
........