Set actual value as preset „z“ (5ah) – Baumer N 152 User Manual
Page 14
N 152
www.baumer.com
14
4.2.8. Set actual value as preset „Z“ (5Ah)
Command “Z” is utilized to set the actual value at any optional value. The required position value is transmitted
to SPA. The SPA will calculate a so-called “preset offset” value relating to the true absolute encoder position.
When calculating the preset offset, any programmed offset transmitted by command “U” will be considered, so
that after having accomplished command “Z” the current value always equals the preset.
Note: If the resolution is altered (see command “a”) from 1/100 to 1/10 or vice-versa, the previously programmed
preset has to be set anew. The auto-calculated offset is provided in the previously selected resolution.
The actual value displayed is composed as follows:
actual
value
displz
= actual value
abs
+ preset offset + Offset
Immediately after having accomplished command „Z“ applies preset value = current valuet
displ
Current value
displ
actual value indicated in the display and read out by interface
Current value
abs
internal absolute actual value (not corresponding to the transmitted preset value).
Preset offset
offset generated by command „Z“.
Offset
Additional offset enabled by command „U“. This function must be enabled first in command
bit parameter ‚a’ (61h), otherwise the offset is 0.
Example 1: Read out presently active preset value
SOH Adr Cmd EOT CRC
Transmission
01h 20h 5Ah 04h 38h
SOH Adr Cmd
Preset value = 2.50
EOT CRC
Response
01h 20h 5Ah 30h 30h 30h 32h 35h 30h 04h
27h
Example 2: Set actual value as preset value (preset value = 17.25)
SOH Adr Cmd
Preset value = 17.25
EOT CRC
Transmission
01h 20h 5Ah 30h 30h 31h 37h 32h 35h 04h
09h
SOH Adr Cmd
Preset value = 17.25
EOT CRC
Response
01h 20h 5Ah 30h 30h 31h 37h 32h 35h 04h
09h
Example 3: Set actual value as preset at all SPAs by broadcast command
SOH Adr Cmd
Preset value = 17.25
EOT CRC
Transmission
01h 83h 5Ah 30h 30h 31h 37h 32h 35h 04h AAh
Response
Not confirmed