IOL_AdjustableSwitchingSensor (FB)¶
FUNCTION_BLOCK IOL_AdjustableSwitchingSensor
- InOut:
Scope
Name
Type
Comment
Input
xExecuteBOOLA trigger causes the function selected with variable Function to be executed
usiComUSINTIndex of master 1: first ETC master
uiDeviceUINTThe physical slave address to access the EtherCAT slave
PortBYTEPort number, 0 for the first port
BackupEnableBOOL“true” = Data Storage enabled; “false” = disabled
FuncThis variable selects the functionality to be triggered by a Request(INT) 0 = no_func; 1 = rd_all; 2 = wr_conf; 3= wr_param; 4 = teachLogicInBOOLThis variable defines the value for a new Switchpoint to be written to the sensor on a Request with Function ‘wr_conf’
SetpointInINTThis variable defines the value for a new Setpoint to be written to the sensor on a Request with Function ‘wr_param’
TeachModeThis variable defines one of the possible teach procedures:(INT) 0 = no_teach; 1 = single_value; 2 = two_value; 3 = dynamicTeachTimerTIMEDefines the duration of the dynamic teach time
ApplyAutoBOOL‘true’ = autoapply_enabled; ‘false’ = autoapply_disabled
TeachRequestBOOLA rising edge triggers one step of teach process to be executed according to the selected function at variable TeachFunction.
TeachFunctionThe value applied to this variable defines the teach functionality to be executed on TeachRequest. (INT) 0 = no teach; 1 = teach 1; 2 = teach 2; 3 = appply; 4 = abort
Output
xDoneBOOLThe signal is set, if the FB has completed a requested operation.
xBusyBOOLThe signal is set, if the FB is executing a requested operation.
xErrorBOOLThe signal is set, if an error occurred during execution of a requested operation.
IOL_StatusDWORDStatus Information of IOL_Device
Status(WORD) Current status of the FB operation and executed functions.
LogicOutBOOLRepresents the current value of the parameter Logic from the sensor.
SetpointOutINTrepresents the current value of the parameter Setpoint from the sensor.
PermitTeach1BOOLThe signal is set, if a teach request for teach function ‘teach_1’ is allowed
PermitTeach2BOOLThe signal is set, if a teach request for teach function ‘teach_2’ is allowed
PermitApplyBOOLThe signal is set, if a teach request for teach function ‘apply’ is allowed
PermitAbortBOOLThe signal is set, if a teach request for teach function ‘abort’ is allowed