Write Settings
Sends the system settings data from a remote device to the In-Sight vision system.
Write Settings Inputs
Syntax: WS[Size][Settings][Checksum]
The command is sent on a separate line, followed by the lines of settings data, which should be an exact copy of the data received from a Read Settings command.
The lines of settings data are:
Parameter | Description |
---|---|
Size |
The first line contains an integer value for the size (in bytes) of the settings. |
Settings |
The data for the settings is encoded as ASCII hexadecimal values formatted to 80 characters per line. Each line ends with the terminating character. |
CheckSum |
The last line contains four ASCII hexadecimal bytes that are a checksum of the system settings data. |
Write Settings Outputs
Returns a status code, followed by a line terminator. The status codes are:
Status Codes | Description |
---|---|
1 |
The command was executed successfully. |
0 |
Unrecognized command. |
-2 |
The settings could not be saved. |
-3 |
The checksum failed. The checksum does not match the settings data. |
-4 |
The In-Sight vision system is out of memory. |
-6 |
User does not have Full Access to execute the command. For more information, see User Access Settings Dialog. |
Write Settings Example
To send the system settings to the sensor, issue the following command: WS
After issuing the Write Settings command, the first input is the size (4246) in bytes. Next, each ASCII hexadecimal byte of the system settings is input. Finally, the four ASCII hexadecimal checksum bytes are input on the last line (7106).
The In-Sight sensor responds with a status code of 1, indicating that the command was executed successfully.
- Most of the actual image data has been omitted from the preceding graphic for clarity.
- The size will be twice the number of bytes of the proc.set file, due to ASCII hexadecimal encoding of the data.