M+Fx5Ucpu-En_Recv_Socket - Mitsubishi Electric MELSEC iQ-F Reference

Fx5 ethernet/cc-link ie function block
Hide thumbs Also See for MELSEC iQ-F:
Table of Contents

Advertisement

■Public label
No.
Variable name
(9)
pbi_bReadTiming
FB details
Item
Available device
Language
Number of basic steps
Processing
FB compilation method
FB operation
Timing chart of I/O signals
Restrictions or precautions
2 FX5 ETHERNET FB
10

2.3 M+FX5UCPU-EN_Recv_Socket

Name
Data type
Read timing
Bit
Description
Target CPU
Engineering tool
Ladder diagram
61 steps
The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and
the setting options of GX Works3. For the setting options of GX Works3, refer to GX Works3 Operating Manual.
• When i_bEN (execution command) is turned on, this function reads the data received to the connection specified by the
input argument.
• If an error occurs during data receiving, o_bErr (error completion) is turned on, and the error code is stored in o_uErrId (error
code). Refer to Page 11 Error code for details on the error codes.
Macro type
Pulsed execution (multiple scan execution type)
[For normal completion]
i_bEN
o_bENO
o_bOK
o_bErr
o_uErrId
[For error completion]
i_bEN
o_bENO
o_bOK
o_bErr
o_uErrId
• This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
• This FB uses the SP.SOCRCV instruction.
• 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) or o_bErr (Error completion) is turned off and o_uErrId (Error
code) is cleared to 0. However, because the SP.SOCRCV instruction which is a pulse instruction in the FB is used, if a write
is performed while the FB is executed, the instruction may not be executed, and o_bOK (Normal completion) and o_bErr
(Error completion) may not turn on. If this happens, turn i_bEN (Execute command) from off to on again.
• This FB cannot be used in an interrupt program.
• 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).
• Every input must be provided with a value for proper FB operation.
• Set the module parameters in GX Works3 in accordance with the connected equipment and system. For the module
parameters, refer to the MELSEC iQ-F FX5 User's Manual (Ethernet Communication).
Range
Description
ON, OFF
Specify the timing of executing data read processing.
• OFF: Start reading soon after the module FB starts.
• ON: Start reading in the first END processing after
the module FB starts.
The setting is ignored in FX5U/FX5UC CPU because it
reads the data in the END processing.
FX5U CPU, FX5UC CPU
GX Works3 Version 1.030G or later
0H
0H
Error
0H
code

Advertisement

Table of Contents
loading

Table of Contents