Printer - Mitsubishi Electric MELSEC FX Series User Manual

Programmable logic controllers
Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FX communication
9.4.2

Printer

Connecting FX
controller.
1 ) System configuration
Use a communication cable suitable to the arrangement of connector pins of the printer
used. (For the representative wiring, refer to chapter 2.)
2 ) Communication format
Let the communication format of the programmable controller be in accordance with that of
the printer used. (The communication format in this example is set as follows.)
Data length
Parity
Stop bit
Baud rate
Header
Terminator
Control line
Protocol
3 ) Example program
M8000
M8002
X000
X001
M0
-232-BD and printer, and printing out the data send from the programmable
2N
Send
8 bit
Even
2 bit
2,400 bps
None
None
No use
No protocol
M8161
FNC 12
H006F
D8120
MOV
FNC 80
D10
K11
D50
RS
PLS M0
FNC 12
H0074
MOV
FNC 12
H0065
MOV
FNC 12
H006E
MOV
FNC 12
H0065
MOV
FNC 12
H000D
MOV
FNC 12
H000A
MOV
SET
M8122
FX
-232-BD
FX
2N
Handled by 8-bit data
Setting communication format
RS instruction driving
K0
D10
D11
Writing send data
D17
D18
D19
D20
Send request
END
RS instruction 9
2N
x
y
z
b15
0000 0000 0110 1111
0
0
{
|
9
b0
6
F
9-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rs-232cRs-422Rs-485

Table of Contents