Set position value
The position value (0x60n1:01 "Position") can be set to a specified position value at runtime. The default can be enabled as follows:
- PLC variable: the position can be set from the PLC application ("Set position value", index 0x70n0:11)
- Digital input: via a positive or negative edge at the digital input ("Set position on digital input", index 0x70n0:02)
Setting the position value via a PLC variable ("Set position value", index 0x70n0:11)
The position value can be set to a specified value at runtime via the process data. In the PLC this bit can be linked to a digital input, for example, or used directly as a variable.
- The position value is specified via index 0x70n0:11 "Set position value".
- Activation of the position value specification via index 0x70n0:01 "Set position" = TRUE"
- For confirmation the "Set position done" bit in index 0x60n0:0B is set to TRUE
- The position specification cannot be reactivated until index 0x70n0:01 has been set to FALSE.
Set position value via digital input ("Set position on digital input", index 0x70n0:02)
- Index 0x80n1:1B "Digital input polarity" can be used to define the level at which the position value is to be set to a specified value:
- 0: Input disabled
- 10: positive edge
- 11: negative edge
- Position value specification via 0x70n0:11 "Set position value".
- Index 0x70n0:02 "Set position on digital input" = TRUE
- With the first parameterized edge (positive or negative) at the digital input the current position value (0x60n1:01) is set to the preset position value (0x70n0:11).
- For confirmation the "Set position done" bit in index 0x60n0:0B is set to TRUE.
- The position specification cannot be reactivated until index 0x70n0:02 has been set to FALSE.
- Index 0x80n0:06 "Enable continuous digital input" can be used to specify whether it is necessary to reactivate the command:
- FALSE: The following pulses at the digital input have no influence on the position value in index 0x60n1:01 "Position" if the bit in index 0x70n0:02 is set.
A new position value can only be written if index 0x60n0:0B "Set position done" is FALSE. - TRUE: The position value 0x60n1:01 "Position" is set to the preset position value (0x70n0:11) for each parameterized edge at the digital input.
The index 0x70n0:02 does not need to be reactivated.
The index 0x60n0:0B "Set position done" is set to TRUE for a PLC cycle with a registered edge. - The status of the digital input can be recorded via index 0x60n0:08 "Digital input".
Parameterization of the digital input The parameterization of the digital input via the indices 0x80n1:1B “Digital input latch polarity” and 0x80n0:06 “Enable continuous digital input” also applies to the functions “Set position on digital input” index 0x70n0:02 and “Enable latch on digital input” index 0x70n0:03. |
Saving the offset value ("Set Position Offset", index 0x90n0:11
An inductive measuring probe provides an absolute measured value, i.e. the position value does not have to be referenced after a voltage interruption.
- If a position specification is carried out via the process data 0x70n0:01 "Set position" or 0x70n0:02 "Set position on digital input", the offset value is stored in index 0x90n0:11 "Set Position Offset".
- The offset value can be reset to zero in the FB command object 0xFB00 "Command" by the following commands.
Command | Description |
---|---|
0x8010 | Deleting the offset value for both position values |
0x8011 | Deleting the offset value for position value of channel 1 |
0x8012 | Deleting the offset value for position value of channel 2 |
Command entry via the System Manager If the command input is written via the System Manager, the value must be entered in the "Binary" field (LOWBYTE first). If the command is initiated via the PLC, then this takes place automatically. |