EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - M+FX5 UCPU-Serialcomm_Input

Mitsubishi Electric MELSEC iQ-F FX5
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
24
4 SERIAL COMMUNICATION FB
4.2 M+FX5UCPU-SerialComm_Input
Timing chart of I/O signals [When the operation is completed with an error]
Module error (Serial communication error) <ch1 example>
Restrictions or precautions This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
This FB cannot be used in an interrupt program.
This FB uses the serial communication (RS2) instruction.
Do not use this FB in programs that are executed only once, such as a subroutine program or FOR-NEXT loop, because
i_bEN (Execution command) cannot be turned off and the normal operation cannot be acquired. Always use this FB in
programs that can turn off i_bEN (Execution command).
When switching the "M+FX5UCPU-SerialComm_InputOutput" FB, "M+FX5UCPU-SerialComm_Input" FB (this FB),
"M+FX5UCPU-SerialComm_Output" FB, and RS2 instruction using the same communication channel, turn OFF unused
target FBs and RS2 instruction for at least 1 scan.
This FB uses the index register Z9. When using an interrupt program, do not use this index register in the interrupt program.
When using an interrupt program, use the DI/EI instruction before and after executing this FB so that this FB is executed in
the interrupt disabled status. If executing this FB in the interrupt enabled status, a self-diagnosis error that occurs in an
interrupt program is detected as an error that occurred in the FB.
The following FB does not support full-duplex bi-directional communication, interlink mode, communication using control
line. To perform full-duplex bi-directional communication, interlink mode, communication using control line, please use
"M+FX5UCPU-SerialComm_InputOutput" FB.
- M+FX5UCPU-SerialComm_Input (this FB)
- M+FX5UCPU-SerialComm_Output
Turn off i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned on. By turning
off i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned off.
This FB can receive data only once. To receive the next data, restart the FB after the previous receiving is completed.
Receiving complete flag of the corresponding channel (SM8562, SM8572, SM8582, and SM8592) are reset after one
operation cycle. Receive the data of o_uRecvDataLength (Number of receive data points) and o_uRecvData (Receive data
storage device) within one operation cycle.
Set the module parameters of the used communication channel in GX Works3 in accordance with the application. For the
module parameter setting method, refer to the MELSEC iQ-F FX5 User's Manual (Serial Communication).
Restart this FB to allow changes to the number of allowable receive data points.
FX5UC CPU does not have serial communication port ch2. When using this FB in FX5UC CPU, set a channel of one of ch1,
ch3, ch4.
This FB does not support the SM/SD devices of FX3 series compatibility. When using this FB in communication channel ch1
or ch2, set the SM/SD devices of FX3 series compatibility of the module parameters of the used communication channel in
GX Works3 to "Disable."
Item Description
i_bEN
o_bENO
Receiving
0H Error code
Serial data transfer
SM8500 (ch1 communication error)
o_bOK
o_bErr
o_uErrId

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals