F-58
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
7 Practical Program Example (RS Instruction)
7.1 Example of Printing Using RS Instruction (Using RS-232C Connection)
3. Sequence program
4. Operation
M8161
M8000
M8002
MOV
H006F
D8120
X000
K11
D50
RS
K0
D10
X001
PLS
M0
M0
MOV
D10
H0074
MOV
D11
H0065
MOV
D17
H006E
MOV
D18
H0065
MOV
D19
H000D
MOV
D20
H000A
SET
M8122
END
8-bit data is handled.
The
communication
format is set.
RS instruction
is driven.
Sending request
is given.
Send data is written.
This step is not required when the
communication parameters are
already set.
M8000
M8120
The communication setting is kept.
(This step is required only in an FX
0N
PLC.)
0000 0000 0110 1111
0 0 6 F
b15 b0
Power is turned
ON.
RS instruction is
driven.
Data is sent.
Turn ON the power to the PLC and printer, set the PLC to RUN mode,
and set the printer to online mode.
At this time, the communication format is set in the PLC.
X000 is set to ON to drive the RS instruction.
At this time, send data is stored in 11 devices from D10 to D20.
Every time X001 is set to ON, the data stored in D10 to D20 is sent to
the printer.
ASCII codes are used in this example.
(The sending complete flag is automatically reset.)
X000.ON
X001.ON
Summary of Contents for FX-485ADP
Page 2: ......
Page 120: ...B 2 FX Series PLC User s Manual Data Communication Edition N N Network ...
Page 188: ...C 2 FX Series PLC User s Manual Data Communication Edition Parallel Link ...
Page 244: ...D 2 FX Series PLC User s Manual Data Communication Edition Computer Link ...
Page 344: ...E 2 FX Series PLC User s Manual Data Communication Edition Inverter Communication ...
Page 700: ...H 2 FX Series PLC User s Manual Data Communication Edition Programming Communication ...
Page 752: ...I 2 FX Series PLC User s Manual Data Communication Edition Remote Maintenance ...
Page 817: ......