MLTrigIsTrigged
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. - Checks if the selected block has been triggered.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BlockID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
ID number of an initiated Trigger object. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE if the selected Trigger Object has triggered. |
Remarks
-
-
This function or function block A function block groups an algorithm and a set of private data. It has inputs and outputs. returns cached data.
See Program a Multi-Core Controller.
- When a block has been triggered, it contains the time and position Position means a point in space which is described by different coordinates.
Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation.
In ACS there can be even more than six coordinates.
If the same position is described in different coordinate systems the values of the coordinates are different. when a Fast Input The inputs are taken into account at each cycle depending on the system periodicity (i.e., each millisecond).
Under certain circumstances, this can be insufficient when more accuracy is needed or if a quick response is required from the system.
To fill the gap, a drive may have some Fast Input connections (generally one or two).
When an event happens that triggers a Fast Input (e.g., when a sensor sends a rising edge), the detection of a signal occurs faster.
This can be 1000 times more accurate than the system periodicity.
The timestamp associated with this input can be provided to the IPC to take corrective action. event occurred.
- The application has to reset New start of the microprocessor. the block before the block can be triggered again.
- All trigger events that are sent to the block during its triggered state are lost.
- Once triggered, a block has to be reset before it can be triggered again.
- All events sent to a block while in a triggered state are ignored.
- The position and time information is lost.
Fast Homing - Inputs
See these topics for more information:
- Fast Homing Example with the Pipe Network Motion Engine Axis Pipe Block
- Fast Homing Example with the PLCopen Motion Engine
- Fast Inputs with Pipe Network Motion
- Pipe Network Registration and Fast Homing
- Registration Position Capture Example with Pipe Network Trigger Block
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Check if a Trigger Block has been triggered, then save position
IF MLTrigIsTrigged( PipeNetwork.TRIGGER ) THEN
Trig_Position := MLTrigReadPos( PipeNetwork.TRIGGER );
END_IF
See Also