SetDiscreteOutputDelay
Configures delay settings that are found in the Output Details dialog. For more information, see Configure Discrete Output Details.
- If the SetDiscreteOutput command is issued after the SetDiscreteOutputDelay command, the SetDiscreteOutputDelay settings are overwritten.
-
If an In-Sight vision system is being used in conjunction with a CIO-1400 or CIO-1450 I/O module, do not use either the SetDiscreteOutput or SetDiscreteOutputDelay commands to change a discrete output setting over the serial port. Doing so may cause the vision system to become unresponsive. Use the Discrete I/O Settings and Output Details dialogs to make the change, or send the commands over Telnet.
SetDiscreteOutputDelay Inputs
Syntax: EV SetDiscreteOutputDelay(LineID,Type,[Delay],[[WriteProcSet],[IOModule]])
Parameter | Description |
---|---|
LineID | The output line number to be modified. |
Type |
|
Delay |
|
WriteProcSet is an optional parameter.
|
|
IOModule is an optional sub-parameter that can be used to set the Discrete Output Delay for a specific I/O Module type:
|
SetDiscreteOutputDelay Outputs
Returns a status code, followed by the number of characters (in bytes) for the results, then the results in XML format. The status codes are:Status Codes | Description |
---|---|
1 | The command was executed successfully. |
0 | Unrecognized command. |
-2 | The command could not be executed. |
-6 | User does not have Full Access to execute the command. For more information, see User Access Settings Dialog. |
SetDiscreteOutputDelay Example
To configure the following settings:
- Line ID: 3
- Type: Time After Trigger
- Delay: 250 ms
- WriteProcSet: 1
- IOModule: CIO-MICRO
Issue the following command: EV SetDiscreteOutputDelay(3,2,250,1,3)
The In-Sight vision system responds with a status code (1), followed by the number of characters, in bytes (18). Finally, the results are returned in XML format.