This function block returns the PTO detected error code.
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
This table describes the input variables:
Inputs |
Type |
Comment |
---|---|---|
PTO_REF_IN |
Reference to the PTO channel. To be connected to the PTO_REF of the PTOSimple or the PTO_REF_OUT of the Administrative or Motion output pins function blocks. |
|
Execute |
BOOL |
On rising edge, starts the function block execution. When FALSE, resets the outputs of the function block when its execution terminates. |
This table describes the output variables:
Outputs |
Type |
Comment |
|
---|---|---|---|
PTO_REF_OUT |
Reference to the PTO channel. To be connected with the PTO_REF_IN input pin of the Administrative and Motion function blocks. |
||
Done |
BOOL |
TRUE = indicates that PTODiag is valid. Function block execution is finished. |
|
Busy |
BOOL |
TRUE = indicates that the function block execution is in progress. |
|
Error |
BOOL |
TRUE = indicates that an error was detected. Function block execution is finished. |
|
ErrID |
When Error is TRUE: type of the detected error. |
||
PTODiag |
DWORD |
When Done is TRUE: Diagnostic error code (see table below). |
The following table is the encoding for the diagnostic variable PTODiag. For more detailed diagnostic information, see Detected Error Management.
DWORD bit |
Meaning |
---|---|
0...3 |
Not used |
4 |
Internal error detected |
5 |
FastPTO invalid DelayStart |
6 |
Inhibit fault |
7 |
Configuration error detected |
8 |
Invalid buffer mode |
9 |
Proximity limit error detect |
10 |
Command buffer full |
11 |
Buffer speed error detected |
12 |
Axis not referenced |
13 |
Homing Origin or PROX disabled |
14 |
FastPTO stop exception |
15 |
FastPTO reconfiguration |
16 |
FastPTO overrange |
17 |
Drive not ready (auxiliary input DriveReady is FALSE) |
18 |
Software high limit detected |
19 |
Software low limit detected |
20 |
No trigger pin assigned for FastPTO |
21 |
Homing error detected |
22 |
Invalid Frequency |
23 |
Invalid Acceleration |
24 |
Invalid Deceleration |
25 |
Command rejected |
26 |
Invalid Distance |
27 |
Invalid Position |
28 |
Invalid Homing |
29 |
Invalid Direction |
30 |
Reverse Direction |
31 |
Profile Error detected |
NOTE: For more information about Done, Busy, CommandAborted and Execution pins, refer to General Information on Function Block Management.