■Example to create M+CameraRecord-E_AXIS_VirtualInputControl_R (Virtual input port
control)
This FB executes a recording event of the network camera with the virtual input port status on or off.
■When bVirtualInputControl_EN (FB execution command) is turned on, the recording is instructed to the network camera.
• Store the number of the slot where the RJ71EN71 or RnENCPU is installed in i_uIO (start I/O No.)
• The network camera is specified with i_uConnectionNo (Connection number).
• The network camera authentication is cleared with i_sUserName (User name) and i_sPassWord (Password).
• The virtual input port is specified with i_uVirtualInputPortNo (Virtual input port number).
• i_bVirtualInputState (Virtual input port status) is turned on (enabled).
■When the recording direction has been completed successfully (bVirtualInputControl_OK is on), i_bVirtualInputState (Virtual input port status) is turned off,
and bVirtualInputControl_EN (FB execution command) is turned on again.
• Global label
• Program
i_bEN
i_bVirtualInputState
o_bOK
Virtual input port status of
the camera
Recording duration
(1) Video recording duration
5 PROGRAMMABLE CONTROLLER SETTINGS
46
5.2 MELSEC iQ-R Series RJ71EN71, RnENCPU (Network Part)