Download User Manual
Transcript
6 CANopen® objects Object "Digital Outputs" (Index 0x2100) Digital Input (Index 0x2100) The structure of this object is shown in the table below. This object is for configuring the digital inputs IN 1 ... IN 5 and for retrieving their states. Index Sub-index 0x2100 Sub-index 2 Default Description Attributes ro (read only) 0 6 Number of entries 1 0 Not used 2 0 Active-high/active-low selection 3 1 Not used 4 0 Process value 0: Input states (2 bits/channel) ro 5 0 Process value 1: Input states (1 bit/channel) ro 6 5 Parameter 0: Amount of inputs ro rw (read & write) The function of sub-index 2 is described below: Sub-Index 2 lets you set inputs IN 1 through IN 5 to either active-high (internal pull down resistor) or active-low (internal pull up resistor) mode. A bit value of 0 sets the input to active-low (input state "OFF") and a bit value of 1 sets the input to active-high (input state "ON"). The value can also be read back to confirm. Sub-index 2 uses the one bit per channel data structure described below: • • • • • Sub-index 4 Bit 0: Digital input IN 1 Bit 1: Digital input IN 2 Bit 2: Digital input IN 3 Bit 3: Digital input IN 4 Bit 4: Digital input IN 5 The function of sub-index 4 is described below: Sub-index 4 lets you retrieve the current state of IN 1 through IN 5. Sub-index 4 returns the data in a two bit per channel format (provided for 62 backwards compatibility). Sub-index 4 uses the two bit per channel data structure described below: • Bit 1, 0: Digital input IN 1 • Bit 3, 2: Digital input IN 2 • Bit 5, 4: Digital input IN 3 • Bit 7, 6: Digital input IN 4 • Bit 9, 8: Digital input IN 5 In the two bit per channel configuration, the following data values are possible: • 0b00: Not used • 0b01: Input state OFF Jetter AG