N 140, Response upon deletion of all targets, Direct positioning „sd – Baumer N 140 User Manual
Page 8

N 140
www.baumer.com
8
4.2.3. Read / write parameter target (profile), command „S“ (53h)
This command is for readout the presently active target or for programming respectively reading a specific
target. The data are composed of profile number (2 bytes) and target (6 bytes). Important: Negative targets
come with 5 digits only (see example no. 3).
Example 1: Read active target (current profile number = 12; target = 12,50)
SOH
Adr
Cmd
EOT
CRC
Transmission
01h
20h
53h
04h
2A
SOH
Adr
Cmd Profile no. = 12
Target = 12,50
EOT
CRC
Response
01h
20h
53h
31h
32
30h
30h
31h
32h
35h
30h
04h
3E
Response upon deletion of all targets:
SOH
Adr
Cmd
Profile no. =
FFh
Target = FFFFFFh
EOT
CRC
Response
01h
20h
53h
3Fh
3F
3Fh
3Fh
3Fh
3Fh
3Fh
3Fh
04h
2Ah
Example 2: Read target of a specific profile (profile number = 17; target = 12,50)
SOH
Adr
Cmd Profile no. = 17 EOT
CRC
Transmission
01h
20h
53h
31h
37h
04h
16h
SOH
Adr
Cmd Profile no. = 17
Target = 12,50
EOT
CRC
Response
01h
20h
53h
31h
37h
30h
30h
31h
32h
35h
30h
04h
BCh
Example 3: Write target of a specific profile (profile number = 17; target = -12,50)
s
SOH
Adr
Cmd Profile no. = 17
Target = -12,50
EOT
CRC
Transmission
01h
20h
53h
31h
37h
2Dh
30h
31h
32h
35h
30h
04h
FBh
SOH
Adr
Cmd Profile no. = 17
Target = -12,50
EOT
CRC
Response
01h
20h
53h
31h
37h
2Dh
30h
31h
32h
35h
30h
04h
FBh
Direct positioning „SD“
This command may be utilized for direct positioning operations with direct programming of a position value.
Only the target less any profile number is transmitted to SPA. The profile number after the command “S” is
replaced by sub command “D” (0 = dimension). Any previously programmed profiles are not overwritten.
Example 4: Write position value for direct positioning (less profile)
SOH Adr Cmd Sub
Position value = 278,25
EOT CRC
Transmission
01h 20h 53h 44h 30h 32h 37h 38h 32h 35h
04h 6Bh
SOH Adr Cmd Sub
Position value = 278,25
EOT CRC
Response
01h 20h 53h 44h 30h 32h 37h 38h 32h 35h
04h
6Bh
Note: The position value is saved in the non-volatile memory and will be retained in case of power failure. In this
case the previously selected profile will be applied again.
If an IVO master is utilized, the target is reset to the previously defined profile value after having quit dimension
mode (DIM mode).
4.2.4. Read / write parameter profile number, command „V“ (56h)
This command is for readout the number of the presently active profile respectively for profile alteration.
Example 1: Read active profile (active profile number = 38)
SOH
Adr
Cmd
EOT
CRC
Transmission
01h
20h
56h
04h
20h
SOH
Adr
Cmd Profile no. = 38 EOT
CRC
Response
01h
20h
56h
33h
38h
04h
28h