# 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 | External Event 7 | External Event 6 | External Event 5 | External Event 4 | External Event 3 | External Event 2 | External Event 1 | External Event 0
Vision Status | 0 | Online |  |  | Acq Error | Reserved | Trigger Ack | Trigger Ready
1 | Error | Command Failed | Command Completed | Command Executing | Results Valid | Results Buffer Overrun | Inspection Completed | Reserved
2 | Reserved |  | Exposure Complete | String Command Error | String Command Ack | Set User Data Ack
3 | External Event Ack 7 | External Event Ack 6 | External Event Ack 5 | External Event Ack 4 | External Event Ack 3 | External Event Ack 2 | External Event Ack 1 | External Event Ack 0
Output Block | 0..1 | Current Job ID
2..3 | Error Code
4..5 | Command Results Code
6..7 | Inspection ID
8..9 | Inspection Result Code
10.. | Inspection Results
Input Block | 0..1 | Command ID
2..3 | Reserved
4.. | User Data