11 - 409 11 - 409
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Specifying communication parameters
Control table format definition
Element position
Item
Description
%(0)
Processing code
Specify the processing code.
%(1)
Baud rate
Specify the baud rate.
%(2)
Character length,
parity bit
Specify the character length and parity bit in the
lower and higher bytes, respectively.
Processing Code 16
%(3)
Stop bit
Specify the stop bit in the lower byte. The higher
byte is ignored.
Reading communication parameters
Control table format definition
Element position
Item
Description
%(0)
Processing code
Specify the processing code.
%(1)
Baud rate
Read the status of the baud rate.
%(2)
Character length,
parity bit
Read the statuses of the character length and
the parity bit into the lower and higher bytes,
respectively.
Processing Code 17
%(3)
Stop bit
Read the status of the stop bit into the lower
byte.
• It is possible to set or read communication parameters of an open
communication channel using these codes.
• Specify 16 for the processing code in order to set communication parameters.
Specify 17 for the processing code in order to read communication parameters.
Specify other items as follows:
When changing setting
values
• • •
Sets all the items including values to be
changed, in the same way as when
specifying parameters in the control table
for the ZOPEN instruction. See the ZOPEN
instruction for details (it is not possible to
set only a part of the items).
When reading set data
• • •
The currently set parameter data is stored
in element positions (1) to (3) of the control
table. See the ZOPEN instruction for the
meaning of each data item.
When the communication parameters are set, all receive buffer memory
is cleared and all control signal statuses are initialized.