Input Pin Description - CableLength_Enc_2
Input |
Data Type |
Description |
---|---|---|
i_xEn |
BOOL |
TRUE: Enables the function block. FALSE: Disables the function block. Refer to detailed description below this table. |
i_xCalbMode |
BOOL |
This input enables the calibration. TRUE: Calibration active. FALSE: Calibration inactive. Refer to detailed description below this table. |
i_wPulsEnc |
WORD |
This is the encoder pulses input from the drive (PUC). Range: 0 to 65535 |
i_xHighLim |
BOOL |
This is the forward stop limit switch input of the hoisting axis. NOTE: It is mandatory to use a limit switch which is normally closed (NC contact). TRUE: Limit inactive FALSE: Limit active |
i_rLoadLen |
REAL |
This input is the input for an additional load length if needed. Range: 0...100 Scaling/Unit: 1 m |
i_stCLE |
CLE |
Refer to Sub-structure description. |
NOTE: If the information of the limit switch input i_xHighLim is transferred via the fieldbus, connect the status of the fieldbus communications to this i_xEn input, because during the boot-up phase of the controller, the fieldbus becomes operational later than the program of the controller. This could lead to an incorrect cable length output of the function block.
Example of CANopen status verification for node 3:
VAR
GET_STATE_Node: CIA405.GET_STATE;
xNodeOperational: BOOL;
END_VAR
_____________________________________________
(* Check the CANopen node with NodeId 3 *)
GET_STATE_Node(
NETWORK:= 1,
ENABLE:= NOT GET_STATE_Node.CONFIRM AND NOT (GET_STATE_Node.ERROR > 0),
TIMEOUT:= 1000,
DEVICE:= 3);
IF GET_STATE_Node.CONFIRM OR (GET_STATE_Node.ERROR > 0) THEN
xNodeOperational:= (GET_STATE_Node.STATE = 5);
END_IF
Example of EtherNet/IP status Verification for a device with connection id 257:
VAR
xEipHealth: BOOL;
END_VAR
_____________________________________________
(* Check the Ethernet/IP device with connection Id 257 *)
xEipHealth:= UINT_TO_BOOL(EipGetHealth(i_uiconnId:= 257));
By setting the i_xEn input to FALSE the output states will be overwritten by a defined fallback state. As soon as the function block gets enabled again the output states will be updated corresponding to the function block behavior as described above. There is no additional action required from you to re-establish the enabled state.
|
UNINTENDED EQUIPMENT OPERATION |
Ensure that the status of the fieldbus communications is used to enable the function block. |
Failure to follow these instructions can result in death, serious injury, or equipment damage. |
The fallback state of CableLengthEnc_2 is given in the table below:
Output |
Data Type |
Fallback State |
---|---|---|
q_xEn |
BOOL |
FALSE |
q_rLenActl |
REAL |
0 |
q_diCalbPulsVal |
DINT |
no change |
q_xCalbDone |
BOOL |
no change |
q_wAlrmId |
WORD |
0 |
q_xAlrm |
BOOL |
FALSE |
This is the input to enter into calibration mode of the FB. The calibration is conducted as followed:
1.It is mandatory to use a limit switch which is normally closed (NC contact).
2.Lift the hoist up to its highest limit, so the i_xHighLim is getting FALSE.
3.Set the i_xCalbMode input to TRUE.
4.Lower the hoist down to the ground.
5.Enter the distance from the top position down to the ground into the i_stCLE.rCalbCbleLen input, scaling is 1.0 meter.
6.Set the i_xCalbMode input to FALSE.
Sub-Structure Description of i_stCLE
A structure of the data type CLE containing configuration parameters.
For example, a declaration of structure variable with initial values:
VAR
structure_instance: data_type := (element1 := XX, element2 := YY);
END_VAR
Structure Parameter |
Data Type |
Description |
---|---|---|
rCbleLenMin |
REAL |
Remaining cable length at forward stop. When the hoist was stopped by the upper limit switch (forward stop) there is normally a distance left between the hook and the point where the cable is attached to the drum, the remaining cable length which cannot be under-run. This is the minimum cable length. Range: 0.5...10 Scaling/Unit: 1 m |
rCalbCbleLen |
REAL |
Length of the calibration run. This is the length driven during calibration, usually the length in between the upper limit switch of the hoist and the hook touching the ground, the maximum length of the crane. It is used to determine the ratio of length versus pulses and only entered once during calibration. Range: 0...100 Scaling/Unit: 1 m |
diCalbPulsVal |
DINT |
Number of pulses to rCalbCbleLen for manual override of calibration. In a series of cranes where the calibration results are known, this is the manual override to omit the calibration procedure. It determines the number of pulses relating to the entered value of pulses at rCalbCbleLen. Range: 1...2147483647 Scaling/Unit: 1 pulse |