ETC_FoE_Upload (FB)ΒΆ
FUNCTION_BLOCK ETC_FoE_Upload
Function block to upload a file from the EtherCAT Slave.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLRising edge: ACTION starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle.
usiComUSINT1
Index of master 1: first ETC master
uiDeviceUINTThe physical slave address to access the EtherCAT slave
usiChannelUSINT1
not used in the moment because channel is set automatically
pbyDataPOINTER TO BYTE
pointer to buffer to read
udiDataSizeUDINTSize of buffer
dwPasswordDWORDPassword for file to read
strFilenameSTRINGFilenname to read fromthe EtherCAT slave
Output
xDoneBOOLTRUE: Action successfully completed
xBusyBOOLTRUE: Function block active
xErrorBOOLTRUE: Error occurred, function block aborts action, FALSE: No error
Errorcodeif xError is true, then this output shows the error reason
strErrorTextSTRINGError code as an string
udiDataReadUDINTNumber of Bytes that could be read