Mitsubishi Electric FX3U-232-BD User Manual page 608

Melsec-f fx series programmable controllers data communication edition
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
RS
X001
M0
4. Operation
Power is turned
X000.ON
RS instruction is
X001.ON
Data is sent.
F-58
H006F
MOV
D10
K11
D50
PLS
H0074
MOV
H0065
MOV
H006E
MOV
H0065
MOV
H000D
MOV
H000A
MOV
SET
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.
ASCII codes are used in this example.
(The sending complete flag is automatically reset.)
7 Practical Program Example (RS Instruction)
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
D8120
communication
format is set.
RS instruction
K0
is driven.
M0
D10
D11
D17
Send data is written.
D18
D19
D20
Sending request
M8122
is given.
END
PLC.)
0N
b15
b0
0000
0000
0110
1111
0
0
6
F
This step is not required when the
communication parameters are
already set.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents