JeffreyThijssen - 2018-11-13

Hello,

When I put a function into a ladder element. Some of the inputs are shortened.
For example I_Reco...

VAR_INPUT
i_CommonSetting : UDT_SettCommon; //Default settings
i_Setting : UDT_SettTrs01; //Settings of the transport section
i_CFG : UDT_CfgTrs01; //Configuration parameters
i_General : UDT_General; //Previous cycle time [us]
i_Record : DINT; //Record within Position DataBlock Downstream section
i_RecordDownstream: DINT ; //Record of the downstream section
i_CmdEnable : BOOL; //CMD: Enable command
i_CmdStart : BOOL; //CMD: Start command
i_CmdReset : BOOL; //CMD: Reset command
i_CmdStop : BOOL; //CMD: Controlled stop
i_CmdIoAvailable : BOOL; //CMD: Signal for indication IO is OK (no Fieldbus or IO error)
i_CmdSafetyOk : BOOL; //CMD: Safety is OK signal
i_CmdReverse : BOOL; //CMD: Running reverse
i_CmdSelectSpeed : INT := 0; //CMD: [1,2,3,4] Select which speed for the Motor to run
i_External : UDT_External; //External input interface
i_SendStatistics : BOOL; //CMD: Trigger Send and clear statisticals
i_IoNotPecEos : BOOL; //HW: Fail safe signal of Photo Electric Cell (TRUE=No product detected)
i_IoPpi : BOOL; //HW: The PPI signal
i_IoEncoder : DINT:= 0; //HW: [mm/sec] encoder displacement
i_LmsBusError : BOOL; //LMS has an bus error
i_LmsBusNotPresent : BOOL; //LMS is not accesable on the bus
i_IoLmsAuto : BOOL := TRUE; //HW: switch of the motor equipment is in 'Automatic' position
i_IoLmsHealthy : BOOL := TRUE; //HW: Healthy signal from motor equipment
END_VAR
VAR_OUTPUT
o_TrsStatus : UDT_StatusTrs01; //Status of transport section
o_IoMtrFwd : BOOL; //HW: Forward run signal to motor of conveyor
o_IoMtrRev : BOOL; //HW: Reverse run signal to motor of conveyor
o_IoSpeedSelect1 : BOOL; //HW: Speed combination bit-1
o_IoSpeedSelect2 : BOOL; //HW: Speed combination bit-2
o_ReadyToRestart : BOOL; //Ready To Restart from system control
o_TrackMonitor : UDT_TrackStatistical; //ST: Monitor tracking data
END_VAR

IMG: HalveNamen.PNG