Y_MS_ReadDigitalInputs
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | AxesGroup | AXES_GROUP_REF | A logical reference to a group of axes, which contains several additional substructures pertaining to the group. | |
| VAR_INPUT | ||||
| B | Enable | BOOL | The function will continue to execute every scan while Enable is held high and there are no errors. Indicates that the function is operating normally and the outputs of the function are valid. | FALSE |
| B | InputNumber | BOOL | InputNumber 0-63 corresponds to General Purpose Input IN#0001 - 0064 | DINT#0 |
| VAR_OUTPUT | ||||
| B | InputData | DINT | Value of the specified digital input. | |
| B | Valid | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| B | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
Example
Reads the GENERAL PURPOSE INPUT of the MotomanSync controller. Value of InputData will correspond to the value of the general purpose input. InputNumber = 0 will read the value of IN#0001.
See usage in the appropriate robot controller manual.