MC_InitAxisFeedback
Function - Initializes a PLCopen digitizing Axis' position data.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
En |
BOOL |
FALSE, TRUE |
N/A |
No default |
Request to Initialize a PLCopen Digitizing Axis. This input is only applicable to FFLD programs. |
AxisNumber |
UINT[ ]
UINT |
1 to 256 |
N/A |
No default |
Digitizing Axis number. |
FeedbackPDOIndex |
UINT |
0, 65536 |
N/A |
No default |
The object Index through which the feedback data is sent. |
FeedbackPDOSubIndex |
UINT |
0, 255 |
N/A |
No default |
The sub index of the object through which the feedback data is sent to the controller. |
FeedbackDataResolution |
UINT |
1, 32 |
N/A |
No default |
The resolution of the Encoder. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
OK |
BOOL |
FALSE, TRUE |
N/A |
Indicates the initialization is complete. This output is only applicable to FFLD programs. See Function - General Rules. |
ErrorID |
DINT |
No range |
N/A |
Indicates if the call failed or succeeded. If the call succeeds, this is set to 0 (zero). |
Remarks
- A call to this function is automatically generated when the application is compiled.
- This call is based on the data entered in the PLCopen Axis Data dialog.
Figure 1: MC_InitAxisFeedback
FBD Language Example
FFLD Language Example
Not available.
IL Language Example
Not available.
ST Language Example
(* MC_InitAxisFeedback ST example *)
// Initialize the digitizing Axis (Axis #3) with the Feedback object 0x60E4 subIndex 2.
Encoder resolution is 25bits.
ErrID := MC_InitAxisFeedback(3, 16#60E4, 16#02, 25);