Gets/sets a collection of CogNdmSlmpBlockMapping which maps blocks
of the NDM signal table into SLMP devices.
Namespace: Cognex.VisionPro.CommAssembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 75.0.0.0
Syntax
Property Value
Type: CogNdmSlmpBlockMappingCollectionDefault value is a likely default mapping collection:
{{ControlBit, InternalRelay, 100, 80},
{StatusBit, InternalRelay, 180, 112},
{StatusWord, DataRegister, 100, 16*100},
{ControlWord, DataRegister, 200, 16*100}}
Remarks
The following table describes host the NDM signal table is layed out into 4 seperate blocks specific to SLMP.
The SLMP "ControlBit" signal table/block organizes the single bit NDM signals sent from the PLC to Vision System. The ControlBit block is 80 bits long. +----------------+---------+-------+----------+-----------+-----------+------------+-----------+---------+ | | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 | +----------------+---------+-------+----------+-----------+-----------+------------+-----------+---------+ | 0 | Set | Clear | Rsvd | Initiate | Rsvd | Rsvd | Buffer | Trigger | | | Offline | Error | | Job | | | Results | Enable | | | | | | Load | | | Enable | | +--------------------------------------------------------------------------------------------------------+ | 1 | Rsvd | +--------------------------------------------------------------------------------------------------------+ | 2-5 | SoftEvent 0-31 | +--------------------------------------------------------------------------------------------------------+ | 6 | Rsvd | Rsvd | Rsvd | Rsvd | Set User | Clear | Inspection | Trigger | | | | | | | Data 0 | Exposure | Results | Camera | | | | | | | | Complete 0 | Ack 0 | 0 | +--------------------------------------------------------------------------------------------------------+ | 7 | Rsvd | Rsvd | Rsvd | Rsvd | Set User | Clear | Inspection | Trigger | | | | | | | Data 1 | Exposure | Results | Camera | | | | | | | | Complete 1 | Ack 1 | 1 | +--------------------------------------------------------------------------------------------------------+ | 8 | Rsvd | Rsvd | Rsvd | Rsvd | Set User | Clear | Inspection | Trigger | | | | | | | Data 2 | Exposure | Results | Camera | | | | | | | | Complete 2 | Ack 2 | 2 | +--------------------------------------------------------------------------------------------------------+ | 9 | Rsvd | Rsvd | Rsvd | Rsvd | Set User | Clear | Inspection | Trigger | | | | | | | Data 3 | Exposure | Results | Camera | | | | | | | | Complete 3 | Ack 3 | 3 | +--------------------------------------------------------------------------------------------------------+ The SLMP "StatusBit" signal table/block organizes the single bit NDM signals sent from the Vision System to the PLC. The StatusBit block is 112 bits long. +----------------------------------------------------------------------------------------------------------+ ¦ ¦ Bit 7 ¦ Bit 6 ¦ Bit 5 ¦ Bit 4 ¦ Bit 3 ¦ Bit 2 ¦ Bit 1 ¦ Bit 0 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 0 ¦ Online ¦ Offline ¦ Rsvd ¦ Rsvd ¦ System ¦ System ¦ ¦ ¦ ¦ Reason ¦ ¦ ¦ Busy ¦ Ready ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 1 ¦ General ¦ Rsvd ¦ Job Load ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ ¦ ¦ Fault ¦ ¦ Completed ¦ ¦ ¦ ¦ ¦ ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 2-5 ¦ Soft Event Ack 0-31 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 6 ¦ Results ¦ Inspection ¦ Results ¦ Inspection ¦ Exposure ¦ Acq ¦ Trigger ¦ Trigger ¦ ¦ ¦ Buffer ¦ Passed 0 ¦ Valid 0 ¦ Completed 0 ¦ Complete 0 ¦ Error 0 ¦ Ack ¦ Ready ¦ ¦ ¦ Overrun 0 ¦ ¦ ¦ ¦ ¦ ¦ Camera 0 ¦ Camera 0 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 7 ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Set ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ UserData ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ Ack 0 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 8 ¦ Results ¦ Inspection ¦ Results ¦ Inspection ¦ Exposure ¦ Acq ¦ Trigger ¦ Trigger ¦ ¦ ¦ Buffer ¦ Passed 1 ¦ Valid 1 ¦ Completed 1 ¦ Complete 1 ¦ Error 1 ¦ Ack ¦ Ready ¦ ¦ ¦ Overrun 1 ¦ ¦ ¦ ¦ ¦ ¦ Camera 1 ¦ Camera 1 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 9 ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Set ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ UserData ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ Ack 1 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 10 ¦ Results ¦ Inspection ¦ Results ¦ Inspection ¦ Exposure ¦ Acq ¦ Trigger ¦ Trigger ¦ ¦ ¦ Buffer ¦ Passed 2 ¦ Valid 2 ¦ Completed 2 ¦ Complete 2 ¦ Error 2 ¦ Ack ¦ Ready ¦ ¦ ¦ Overrun 2 ¦ ¦ ¦ ¦ ¦ ¦ Camera 2 ¦ Camera 2 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 11 ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Set ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ UserData ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ Ack 2 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 12 ¦ Results ¦ Inspection ¦ Results ¦ Inspection ¦ Exposure ¦ Acq ¦ Trigger ¦ Trigger ¦ ¦ ¦ Buffer ¦ Passed 3 ¦ Valid 3 ¦ Completed 3 ¦ Complete 3 ¦ Error 3 ¦ Ack ¦ Ready ¦ ¦ ¦ Overrun 3 ¦ ¦ ¦ ¦ ¦ ¦ Camera 3 ¦ Camera 3 ¦ +----------------------------------------------------------------------------------------------------------+ ¦ 13 ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Rsvd ¦ Set ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ UserData ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ Ack 3 ¦ +----------------------------------------------------------------------------------------------------------+ The SLMP "StatusWord" signal table/block organizes the word length signals sent from the Vision System to the PLC. The size of the StatusWord block can vary depending on the size of the inspection results section. +----------------------------------------------+ ¦ ¦ 16Bit Word ¦ +----------------------------------------------+ ¦ 0 ¦ Current Job ID ¦ +----------------------------------------------+ ¦ 1 ¦ Error ID ¦ +----------------------------------------------+ ¦ 2 ¦ Acquisition ID 0 ¦ +----------------------------------------------+ ¦ 3 ¦ Inspected Image ID 0 ¦ +----------------------------------------------+ ¦ 4 ¦ Inspection Result Code 0 ¦ +----------------------------------------------+ ¦ 5 ¦ Acquisition ID 1 ¦ +----------------------------------------------+ ¦ 6 ¦ Inspected Image ID 1 ¦ +----------------------------------------------+ ¦ 7 ¦ Inspection Result Code 1 ¦ +----------------------------------------------+ ¦ 8 ¦ Acquisition ID 2 ¦ +----------------------------------------------+ ¦ 9 ¦ Inspected Image ID 2 ¦ +----------------------------------------------+ ¦ 10 ¦ Inspection Result Code 2 ¦ +----------------------------------------------+ ¦ 11 ¦ Acquisition ID 3 ¦ +----------------------------------------------+ ¦ 12 ¦ Inspected Image ID 3 ¦ +----------------------------------------------+ ¦ 13 ¦ Inspection Result Code 3 ¦ +----------------------------------------------+ ¦ 14-960 ¦ Inspection Results ¦ +----------------------------------------------+ The SLMP "ControlWord" signal table/block organizes the word length signals sent from the PLC to the Vision System. The size of the ControlWord block can vary depending on the size of the user data section. +----------------------------------------------+ ¦ ¦ 16Bit Word ¦ +----------------------------------------------+ ¦ 0 ¦ Job Load ID ¦ +----------------------------------------------+ ¦ 1-960 ¦ User Data ¦ +----------------------------------------------+ You can use CogNdmSlmpSignalBlockConstants and CogNdmSlmpDeviceConstants to map blocks of NDM signals to SLMP devices with the CogNdmSlmpBlockMappingCollection class. The following table describes the SLMP memory block addresses supported on the Q, L, and FX PLCs: +-------------------------------+--------+----------------+----------------------------------+-----+----+ | Device Name | Prefix | Bit/Word based | Address Representation | Q/L | FX | +-------------------------------+--------+----------------+----------------------------------+-----+----+ | Input Relay | X | Bit | Hex(Q/L Series) Octal(FX series) | X | X | | Output Relay | Y | Bit | Hex(Q/L Series) Octal(FX series) | X | X | | Internal Relay | M | Bit | Decimal | X | X | | Latch Relay | L | Bit | Decimal | X | - | | Annunciator | F | Bit | Decimal | X | - | | Link Relay | B | Bit | Hex | X | - | | State Relay | S | Bit | Decimal | - | X | | Data Register | D | Word | Decimal | X | X | | Link Register | W | Word | Hex | X | - | | File Register | R | Word | Decimal | X | X | | File Register Multiple Blocks | ZR | Word | Hex | X | - | | Timer | TN | Word | Decimal | X | X | | Counter | CN | Word | Decimal | X | X | +-------------------------------+--------+----------------+----------------------------------+-----+----+ The most commonly used devices used to communicate vision data to a PLC, are the M (Internal Relay) and D (Data Register) types.
See Also