MC_InitAxisFeedback
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Initializes a PLCopen A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML digitizing Axis' position data.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
En |
BOOL |
0, 1 |
N/A |
No default |
Request to Initialize a PLCopen Digitizing Axis. This input is only applicable to FFLD "Free Form Ladder Diagram" programs. |
AxisNumber |
UINT |
1, 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 |
No range |
N/A |
Indicates the initialization is complete. This output is only applicable to FFLD programs. See Pipe Network - General Rules for more information. |
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 6-207: MC_InitAxisFeedback
FBD Language Example
FFLD Language Example
Not available.
IL Language Example
Not available.
ST Language Example
(* MC_InitAxisFeedback ST "Structured text" A high-level language that is block structured and syntactically resembles Pascal 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);