11 - 453 11 - 453
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Baud rate
• In case of A1SD51S and AD51H-S3
Select and set one of the following:
300, 600, 1200, 2400, 4800, 9600, or 19200 bps
• In case of QD51 (-R24)
Select and set one of the following:
300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, or 38400 (setting value: -384)
bps
Character length
• In case of A1SD51S and AD51H-S3
Select and set one of the following : 5, 6, 7, or 8
• In case of QD51 (-R24)
Select and set either 7 or 8.
Parity bit
Select and set one of the following:
No parity (setting value : 0), even parity (setting value : 1), or odd parity (setting value : 2)
Stop bit
Select and set one of the following:
1 bit (setting value: 1), 2 bits (setting value: 2), or 1.5 bits (setting value: 3)
Since the character length and parity bit are required to be specified using the lower
and higher bytes, it is convenient to use hexadecimal as shown below.
%(2)=&H
Indicates the lower byte as
a 2-digit hexadecimal number.
Indicates the higher byte as
a 2-digit hexadecimal number.
• It is always necessary to open the communication port with the ZOPEN instruction when
switching between input/output ports by the ZODV, ZIDV, and ZLDV instructions.
• An error occurs if the ZOPEN instruction is executed on the communication port specified
as a control or debug port by the dip switch of the communication module.
• If a value from 1 to 3 is specified for <channel number>, secure 1024 bytes of memory for
the communication buffer and clear any data in the buffer area.
Use the ZCNTL instruction to specify the communication control method and the
communication buffer size.
REMARK
See the ZCLOSE instruction and Chapter 7.