Special commands, Examples for the programming of storage locations, Clear counts – Baumer NE214 Benutzerhandbuch

Seite 11: Switching the counter to pgm mode or to run mode

Advertising
background image

NE214

www.baumer.com

11

4.1. Examples for the programming of storage locations

The following rule is valid for all subsequent examples:
Counter address = 35; Counter mode = R (RUN-Mode)

Programming of start count SC (Line=04, Start count=360)
Command: <STX>3504P000360<ETX>
Answer: <STX>3504R000360<ETX><CR>

Programming of scaling factor SF (Line=23, Setting=01,0000)
Command: <STX>3523P01.0000<ETX>
Answer: <STX>3523R01.0000<ETX><CR>

Programming of type of counting (Line=25, Type of counting =1)
Command: <STX>3525P1<ETX>
Answer: <STX>3525R1<ETX><CR>

Programming of counter address (Line=54, Counter address=27)
Command: <STX>3554P27<ETX>
Answer: <STX>3554R27<ETX><CR>

Clearing of start count SC (Line=21)
Command: <STX>3504P000000<ETX>
Answer: <STX>3504R000000<ETX><CR>

5. Special commands

In the case of special commands, we are talking about instructions that do not refer to any line number (storage
location on operator plan), with the exception of the command "Clear count".

5.1. Clear counts

The count XP (Line 1) can be cleared via the following special command. This is a line that cannot be
programmed. All other lines on the programming plan (except the separating line) are cleared by programming
the value ZERO (as described under item 4).
The instruction to clear corresponds to a reset via the C key. The response (answer) of the counter when
clearing is the same as with the reading of the corresponding line.

General: <STX> Address Line <DEL> <ETX>

Example: Clearing of count XP
Address=35, Line=01, Status=RUN-Mode
Command: <STX>3501<DEL><ETX> <DEL> = 7FHex
Answer: <STX>3501R000000<ETX><CR>

5.2. Switching the counter to PGM Mode or to RUN Mode

This command allows you to switch the counter upon every call between the PGM mode and the RUN mode.
The current line, as with the reading command on this line, will be returned as an answer.

General: <STX> Address <DC1> <ETX>

Example: Address=35, Status=RUN-Mode, Current Line = 1, Count=15
Command: <STX>35<DC1><ETX> <DC1> = 11Hex
Answer: <STX>35P<ETX><CR>

Repeating the command switches back to the RUN mode
Command: <STX>35<DC1><ETX>
Answer: <STX>35R<ETX><CR>




Advertising