File Source

Error state

Error pattern

The File Source constantly switches to the error state when the PLC is running.

Solution 1

Too little memory

The router memory is set too small. Therefore, the File Source cannot load any image into the PLC and enters the error state when attempting to do so. Enlarge the router memory.

Images from FS Control not in PLC

Error pattern

Images are selected in the File Source Control and the File Source function block in the PLC is in the ACQUISITION state. Nevertheless, no images can be retrieved via GetCurrentImage.

Solution 1

BaseDir not set

The Read from Target button was actuated for the first time after TwinCAT was activated. In this case, the path from which the File Source images are read has not yet been transferred to the running TcCOM object. Therefore no images can be loaded, even though they are selected in the File Source Control. Reactivate TwinCAT after you have pressed Read from Target.

Solution 2

Trigger mode

The Trigger mode is selected in the File Source Control, but only the method GetCurrentImage is called in the PLC, not TriggerImage. Trigger an image by calling the method TriggerImage in the PLC, or deactivate the Trigger mode in the File Source Control.