MLSmpConnect
Description
Related Function Blocks
MLSmpConECAT, MLSmpInit, MLSmpConPNAxis, MLSmpConPLCAxis
Arguments
Input
BlockID | Description | ID Name of the SMP function block in the Pipe Network |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — | |
PipeBlockID | Description | ID Name of the Pipe Block the sampler is connected to |
Data type | DINT | |
Range | [-2147483648, 2147483648] | |
Unit | N/A | |
Default | — |
Output
Default (.Q) |
Description | Returns True if the Sampler is connected. See more details here. |
Data type | BOOL | |
Unit | N/A |
Return Type
BOOL
Example
Structured Text
//Connect a Sampler pipe block named “EncoderMaster1” to a PipeNetwork Axis block named AXIS1
MLSmpConnect( PipeNetwork.EncoderMaster1, PipeNetwork.AXIS1 ) ;
Ladder Diagram
Function Block Diagram