Reference | Boxes The following operation mode is only described because of completeness since it is normally not in use while operating with TwinCAT. The M3000 absolute encoder is programmable via the Lightbus, which can therefore even happen with the aid of the PLC application. The programmed settings get stored within the encoder. If the programming mode gets (unlikely) used within TwinCAT, the programmer must take care that the TwinCAT NC runtime is stopped during this operation! Programming mode: During programming mode, the output as well as the input bytes are in use. The 4 input and output bytes of the 32-bit module have the following function:
Data[0] = value to be written to the encoder (Output) Data[1] = status bits (acknowledge) of the transmission block from the encoder (Input, Value ) with the following meaning: Bit 0: = feedback of mode change towards programming mode Bit 1: not used Bit 2: = acknowledge data block transmission Ok., data stored Bit 3: = acknowledge data byte accepted Bit 4 -7: not used Data[2] = feedback of written value from encoder (Input, Value ). Means, the encoder sends from Data[0] received values back (hopefully ;-). Data[3] = Control bits in programming mode (Output). These bits control the programming functions of the encoder (flow-control/handshaking).
During programming mode operation this byte gets mirrored in the Data3 input variable. The bits have the following meaning: Bit 0: '0' = count mode, '1' = programming mode Bit 1: = 'Preset 1' take-over request to encoder TwinCAT 2 305 Version: 1.7