Control and status word
Control word
The control word (CW) is located in the output image, and is transmitted from the controller to the terminal.
Bit | CW.15 | CW.14 | CW.13 | CW.12 | CW.11 | CW.10 | CW.9 | CW.8 |
Name | - | Set Position in ProcData | Clear Position | Reduced Current (drive) | Reduced Current | SetPos | disMixed Decay | GetEncoder Position |
Bit | CW.7 | CW.6 | CW.5 | CW.4 | CW.3 | CW.2 | CW.1 | CW.0 |
Name | GetPosition Error | ToggleLatch Data | GetLatch Data | enLatch FallEdge | enLatch RiseEdge | enLatch Input2 | enLatch Input1 | enLatchC |
Legend
Bit | Name | Description | |
---|---|---|---|
CW.15 | - | 0bin | reserved |
CW.14 | Set position in ProcData | 1bin | Switches the process data from set velocity to set position (see function Specifying the set position) |
CW.13 | ClearPosition | 1bin | Position value is deleted (rising edge) ATTENTION: higher priority than CW.10 |
CW.12 | Reduced current (drive) | 1bin | Reduced coil current (specified through R45) is active, with rotating motor |
CW.11 | ReducedCurrent (same function as bit CB.3) | 1bin | Reduced coil current (when the motor is at standstill) is active (specified via R45) |
CW.10 | SetPos | 1bin | Position value is set with registers R2 and R3 (rising edge) |
CW.9 | disMixedDecay | 0bin | Motor control via 2 pulsed transistors per half-wave |
1bin | Motor control via 1 pulsed and one switched-through transistor per half-wave | ||
CW.8 | GetEncoder position1, 2) | 1bin | Show the current encoder position in the process data |
CW.7 | GetPosition error1 | 0bin | Show the current position in byte2,3 of the input process data |
1bin | Show the relative position error in byte2.3 of the input process data | ||
CW.6 | ToggleLatch data | 0bin | If this bit is changed, the saved latch values - up to 20 - (R37) can be retrieved if the latch array (R32.9) is activated and CW.5 is set |
1bin | |||
CW.5 | GetLatchData | 0bin | Show the current position in byte2,3 of the input process data |
1bin | Show the current latch value in byte2,3 of the input process data | ||
CW.4 | enLatchFallEdge (external) | 1bin | External latch event is enabled (for latch inputs with falling edge, the terminal saves the current position) |
CW.3 | enLatchRiseEdge (external) | 1bin | External latch event is enabled (for latch inputs with rising edge, the terminal saves the current position) |
CW.2 | enLatchInput2 | 1bin | External latch event is enabled (the terminal saves the current position when a rising edge of digital input E2 is encountered) |
CW.1 | enLatchInput1 | 1bin | External latch event is enabled (the terminal saves the current position when a rising edge of digital input E1 is encountered) |
CW.0 | enLatchC (internal) | 1bin | Internal latch event is enabled (for C inputs with rising edge, the terminal saves the current position) |
1) Only with internal positioning
2) Only for KL2541
Status word
The status word (SW) is located in the input image, and is transmitted from terminal to the controller.
Bit | SW.15 | SW.14 | SW.13 | SW.12 | SW.11 | SW.10 | SW.9 | SW.8 |
Name | Config Error | NoControl Power | OverCurrent Br B | OverCurrent Br A | OpenLoad Br B | OpenLoad Br A | Under Voltage | Over Temperature |
Bit | SW.7 | SW.6 | SW.5 | SW.4 | SW.3 | SW.2 | SW.1 | SW.0 |
Name | Encoder Disabled | LatchData Toggled | LatchData InByte2,3 | LatchValid | Target Reached | SetPos Ready | Input E2 | Input E1 |
Legend
Bit | Name | Description | ||
---|---|---|---|---|
SW.15 | ConfigError | 1bin | Configuration error (LED Error A flashes). Cause:
The fault indication will automatically be deleted when correct data are written to the incorrectly configured registers. | |
SW.14 | NoControlPower | 1bin | Outage of the 24 V control voltage (the LED Error B flashes, and the terminal switches the motor off automatically). The terminal is automatically re-Initialized once the voltage has been re-established. | ATTENTION: the user must acknowledge these error messages by setting bit CB.6 of control byte! |
SW.13 | OverCurrent Br B | 1bin | Overcurrent, bridge B (error B LED flashes, and the terminal switches the motor off automatically). | |
SW.12 | OverCurrent Br A | 1bin | Overcurrent, bridge A (error B LED flashes, and the terminal switches the motor off automatically). | |
SW.11 | OpenLoad Br B | 1bin | Open load, bridge B (error B LED flashes, and the terminal switches the motor off automatically). | |
SW.10 | OpenLoad Br A | 1bin | Open load, bridge B (error B LED flashes, and the terminal switches the motor off automatically). | |
SW.9 | UnderVoltage | 1bin | Supply voltage too low (error B LED flashes, and the terminal switches the motor off automatically). | |
SW.8 | OverTemperature | 1bin | Overtemperature (see SB.5) - the stepper controller chip temperature is above 125 °C (the LED Error B flashes, and the terminal switches the motor off automatically). | |
SW.7 | EncoderDisabled | 0bin | The encoder is enabled | |
1bin | the encoder is locked (feature bit R32.12=1 and latch input=0 or R32.13=1 and latch input=1) | |||
SW.6 | LatchDataToggled | 0bin | A new latch value is entered in byte2,3 of the input process data if bit CW.6 was modified and SW.6 has taken on the new state (acknowledgement for ToggleLatchData) | |
1bin | ||||
SW.5 | LatchDataInByte2,3 | 0bin | The current position is shown in byte2,3 of the input process data | |
1bin | The last latch value is shown in byte2,3 of the input process data (acknowledgement for GetLatchData) | |||
SW.4 | LatchValid | 1bin | a latch event has occurred (at CW.0=1, CW.3=1 or CW.4=1); if the latch array is enabled (R32.9) this bit set once the number of latch values specified in R37 has been stored | |
SW.3 | TargetReached3 | 1bin | Target position is reached | |
SW.2 | SetPosReady | 1bin | the current position was deleted (for CW.13=1) or set (for CW.10=1) (acknowledgement for ClearPos and SetPos) | |
SW.1 | Input 2 | Status of digital input 2. The evaluation of digital input 2 can be inverted with bit RP0.R52.15 of feature register 2. | ||
SW.0 | Input 1 | Status of digital input 1. The evaluation of digital input 2 can be inverted with bit RP0.R52.14 of feature register 1. |
3) only in path control mode