SetDiscreteInput
Configures input settings that are found in the Discrete I/O Settings dialog. For more information, see Discrete I/O Settings
- When issuing this command, the In-Sight system must be Offline.
- There are two options for enabling serial communication for the In-Sight 70xx - 74xx series vision system: using the Breakout cable or using the CIO-MICRO or CIO-MICRO-CC I/O module. When connected to the Breakout cable (and there is no connection to an I/O module), the vision system allows one discrete input line and one discrete output line to be configured as Serial Receive and Serial Transmit, respectively.
- Use the Store Settings (TS) native mode command to save changes to the proc.set file. If not saved to the proc.set file, the changes will be lost after power-cycling the In-Sight vision system. For more information, see Store Settings.
SetDiscreteInput Inputs
Syntax: EV SetDiscreteInput(LineID,"Name",Type,Signal)
Parameter | Description |
---|---|
LineID |
In-Sight 2000 series:
|
In-Sight Micro 1000 series, In-Sight 5000 series and In-Sight 8000 series:
|
|
In-Sight 70xx - 74xx series:
|
|
In-Sight 7000 Gen2 series and In-Sight 9912 vision systems:
|
|
In-Sight 9902L:
|
|
"Name" |
The name for the input line. Note: The "Name" input must be enclosed in quotation marks.
|
Type |
|
Signal |
|
SetDiscreteInput 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. |
SetDiscreteInput Example
To configure the following settings:
- LineID: 4
- "Name": Line 4
- Type: Job ID Number
- Signal: Rising Edge
Issue the following command: EV SetDiscreteInput(4,"LINE4",2,0)
The In-Sight sensor responds with a status code (1), followed by the number of characters, in bytes (18). Finally, the results are returned in XML format.