Special commands, Clear counter value, Switching the counter to pgm or run mode – Baumer NE230 Benutzerhandbuch
Seite 11

NE230
www.baumer.com
11
4.1. Examples for programming memory locations
For the example below the following settings do apply:
device ID = 35; counter mode = R (RUN mode)
programming the start count SC (line=04, start count=360)
Command: <STX>3504P000360<ETX>
Reply:
<STX>3504R000360<ETX><CR>
Programming the scaling factor SF (line=07, scaling factor=01,0000)
Command: <STX>3507P01.0000<ETX>
Reply:
<STX>3507R01.0000<ETX><CR>
Programming the counting mode (line=25, counting mode=1)
Command: <STX>3525P1<ETX>
Reply:
<STX>3525R1<ETX><CR>
Programming the device ID (line=54, device ID =27)
Command: <STX>3554P27<ETX>
Reply:
<STX>3554R27<ETX><CR>
Clear start count SC (line=07)
Command: <STX>3507P000000<ETX>
Reply:
<STX>3507R000000<ETX><CR>
5. Special commands
Except for the command “clear counter value”, special commands do not refer to a specific memory location
(line number in the operating plan).
5.1. Clear counter value
The counter value XP (line 1) may be cleared by the following special command. This line does not allow any
programming. All remaining lines of the programming plan (except for separating lines) are cleared by
programming ZERO (as under 4.).
The “clear” command corresponds to a reset by the counter’s C-key. The counter reply upon the “clear”
command is the same as for a read command of the respective line.
General: <STX> identification line <DEL> <ETX>
Example: clear counter value XP
Identification =35, line=01, status=RUN mode
Command
:
<STX>3501<DEL><ETX> <DEL> = 7FHex
Reply : <STX>3501R000000<ETX><CR>
5.2. Switching the counter to PGM or RUN mode
By this command the counter is switched to and fro between PGM and RUN mode. Replied is the actual line,
same as for a read command relating to the respective line.
General: <STX> identification <DC1> <ETX>
Example: identification=35, status=RUN mode, actual line = 1, running value =15
Command:
<STX>35<DC1><ETX> <DC1> = 11Hex
Reply:
<STX>35P<ETX><CR>
When repeating the command the device will switch back to RUN mode
Command: <STX>35<DC1><ETX>
Reply:
<STX>35R<ETX><CR>