FB details
Relevant modules and software
■Target module
MELSEC iQ-R series programmable controller CPU (built-in Ethernet port) ( Page 13 Compatible Programmable
Controllers)
■Engineering tool
GX Works3 Version 1.065T or later
Basic specifications
Item
Programming language
Number of steps
FB dependence
FB compilation method
FB operation
Functional description
• When i_bEN (Execution command) is turned on, a command for enabling/disabling i_uVirtualInputPortState (Virtual input
port status) of i_uVirtualInputPortNo (Virtual input port number) is sent to the network camera. i_uVirtualInputPortState
cannot be automatically disabled once it has been enabled. Therefore, disable i_uVirtualInputPortState after the event is
started. If not disabled, the next event cannot be started.
• If the number of the set characters is outside the effective range for i_uConnectionNo (Connection number), i_sUserName
(User name), and i_sPassWord (Password), o_bErr (FB completed with an error) turns on and the processing of the FB is
interrupted. In addition, the error code, C1E0H, is stored in o_uErrId (Error code). ( Page 77 Error codes)
• If the set value for i_uVirtualInputPortNo is outside 1 to 32, o_bErr turns on and the processing of the FB is interrupted. In
addition, the error code, C1E1H, is stored in o_uErrId. ( Page 77 Error codes)
• If no response is returned from the network camera after the command is sent, o_bErr turns on and the processing of the
FB is interrupted. In addition, the error code, C1E2H, is stored in o_uErrId. ( Page 77 Error codes)
• If an unregistered i_sUserName or i_sPassWord is set, o_bErr turns on and the processing of the FB is interrupted. In
addition, the error code, C1E3H, is stored in o_uErrId. ( Page 77 Error codes)
• For errors that occur in each processing for data communication between the Ethernet-equipped module and external
device, and errors that occur in processing requests from the CPU module in the own station, refer to the following.
MELSEC iQ-R Ethernet User's Manual (Application)
8 FB LIBRARY DETAILS (FOR MELSEC iQ-R SERIES CPU MODULES (BUILT-IN ETHERNET PORT PART))
74
8.3 M+CameraRecord_AXIS_VirtualInputControl_R
Description
Ladder diagram, ST
2798 steps
The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the
option settings of GX Works3. For the option settings of GX Works3, refer to the following.
GX Works3 Operating Manual
No dependence
Subroutine type
Pulse execution type (multiple scan execution type)