User`s manual

FX communication
RS instruction 9
9-17
9
9.4.2 Printer
Connecting FX
2N
-232-BD and printer, and printing out the data send from the programmable
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.)
3 ) Example program
Data length 8 bit
Parity Even
Stop bit 2 bit
Baud rate 2,400 bps
Header None
Terminator None
Control line No use
Protocol No protocol
Send
FX
2N
-232-BD FX
2N
M8000
M8002
X000
X001
M8161
END
M0
D8120H006F
FNC 12
MOV
K11D10
FNC 80
RS
D50 K0
PLS M0
D10
H0074
FNC 12
MOV
D11H0065
FNC 12
MOV
D17H006E
FNC 12
MOV
D18H0065
FNC 12
MOV
D19H000D
FNC 12
MOV
D20
H000A
FNC 12
MOV
SET M8122
Handled by 8-bit data
Setting communication format
Writing send data
Send request
RS instruction driving
b15 b0
0000 0000 0110 1111
00 6F