L_MC1P_FastOutput
This FB calculates the time (latch of the internal µs ticker) for setting the outputs of the I/O compound module EPM-S310 from a position defined by the lrSwitchPosition input. Since the position is transferred in units (user units on the output side of the motion axis), the FB also requires a reference to the corresponding axis data structure.
|
Note!
|
|
|
|
|
L_MC1P_FastOutput |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
xDone |
|
- |
BOOL |
|
L_FastIO_OutRef |
- |
|
FastIO_Out |
xBusy |
|
- |
BOOL |
|
BOOL |
- |
|
xExecute |
xError |
|
- |
BOOL |
|
BOOL |
- |
|
xAbort |
eErrorID |
|
- |
L_IE1P_Error |
|
BYTE |
- |
|
byDigitalOutputSel |
|
|
|
|
|
MC_SOURCE |
- |
|
eValueSource |
|
|
|
|
|
BOOL |
- |
|
xOutputState |
|
|
|
|
|
LREAL |
- |
|
lrSwitchPosition |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs
Outputs
Execute several switching operations successively
If several switching operations are to be carried out in succession, the respective commands must have the same order as the switching operations.
Example : FreeEncoder axis rotates in positive direction, i.e. position values increase.
1. switching operation is to take place at 60 degrees
2. switching operation is to take place at 90 degrees
3. switching operation is to take place at 120 degrees
The order of the commands to be executed must be: "1st switching operation", "2nd switching operation", and "3rd switching operation".
Motion axes (AXIS_REF)