# SLMP Defined Data Blocks

The defined data blocks allow you to control where the vision system is reading from and writing data to the Automation Controller.

For easier application setup, the various control and status bits required for command functionality are grouped into contiguous blocks; in this way, they can be processed together. When setting up the interaction between the vision system and the Automation Controller, you have to choose the starting address and device type for each block of data.

Block | Byte | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Vision Control | 0 | Set Paused | Reserved | Execute Command | Inspection Results Ack | Buffer Results Enable | Trigger | Trigger Enable
1 | Reserved
2 | Reserved | Clear Exposure Complete | Clear Error | Initiate String Command | Set User Data
3 | Soft Event 7 | Soft Event 6 | Soft Event 5 | Soft Event 4 | Soft Event 3 | Soft Event 2 | Soft Event 1 | Soft Event 0
Vision Status | 0 | Online | Paused | Reserved | Acq Error | Reserved | Trigger Ack | Trigger Ready
1 | Error | Command Failed | Command Completed | Command Executing | Results Valid | Results Buffer Overrun | Inspection Completed | System Ready
2 | Reserved | Reserved | Exposure Complete | String Command Error | String Command Ack | Set User Data Ack
3 | Soft Event Ack 7 | Soft Event Ack 6 | Soft Event Ack 5 | Soft Event Ack 4 | Soft Event Ack 3 | Soft Event Ack 2 | Soft Event Ack 1 | Soft Event Ack 0
Output Word | 0..1 | Current Job ID
2..3 | Error Code
4..5 | Acquisition ID
6..7 | Inspection ID
8..9 | Inspection Result Code
10.. | Inspection Results
Input Word | 0..1 | Command
2..3 | Reserved
4.. | User Data

Block | Bytes | Signal
--- | --- | ---
String Command | 0 .. 1 | String Command Length
2 .. 1920 | String Command
String Command Result | 0 .. 1 | String Command ResultCode
2 .. 3 | String Command ResultLength
4 .. 1920 | String Command Result