Mitsubishi FX3U-232-BD User Manual page 484

Fx3u series
Hide thumbs Also See for FX3U-232-BD:
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
3. Sequence program
M8000
M8000
M8002
X000
X001
M0
4. Operation
Power is turned
X000.ON
RS instruction is
X001.ON
F-46
MOV
D10
K11
RS
MOV
MOV
MOV
MOV
MOV
MOV
Turn ON the power to the PLC and printer, set the PLC to RUN mode,
and set the printer to online mode.
ON.
At this time, the communication format is set in the PLC.
X000 is set to ON to drive the RS instruction.
driven.
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.
Data is sent.
ASCII codes are used in this example.
(The sending complete flag is automatically reset.)
7.1 Example of Printing Using RS Instruction (Using RS-232C Connection)
M8161
8-bit data is handled.
The communication setting is kept.
M8120
(This step is required only in an FX
The
H006F
D8120
communication
format is set.
RS instruction
D50
K0
is driven.
M0
PLS
H0074
D10
H0065
D11
H006E
D17
H0065
D18
H000D
D19
H000A
D20
Sending request
M8122
SET
is given.
END
7 Practical Program Example (RS Instruction)
b15
0000
0000
0
0
This step is not required when the
communication parameters are
already set.
Send data is written.
PLC.)
0N
b0
0110
1111
6
F

Advertisement

Table of Contents
loading

Table of Contents