Mitsubishi Electric FX3U-232-BD User Manual page 627

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)
2. Sequence program
M8002
X000
RS2
X001
M0
3. Operation
Power is turned
X000.ON
RS2 instruction is
driven.
X001.ON
Data is sent.
H006F
MOV
D10
K11
D50
K0
PLS
H6574
MOV
H7473
MOV
H6C20
MOV
H6E69
MOV
H0D65
MOV
H000A
MOV
SET
Turn ON the power to the PLC and printer, set the PLC to RUN mode,
and set the printer to the online mode.
ON.
At this time, the communication format is set in the PLC.
X000 is set to ON to drive RS2 instruction.
At this time, send data is stored in 6 devices from D10 to D15.
Every time X001 is set to ON, 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.)
9 Practical Program Example (RS2 Instruction)
9.1 Example of Printing Using RS2 Instruction (Using RS-232C Connection)
The
D8400
communication
format is set.
RS2
instruction
K1
is driven.
M0
D10
D11
D12
Send data is written.
D13
D14
D15
Sending request
M8402
is given.
END
b15
b0
0000
0000
0110
1111
0
0
6
F
This step is not required when the
communication parameters are
already set.
F-77
A
B
C
D
E
F
G
H
I
Apx.A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents