Special commands – Baumer PCD41 Benutzerhandbuch

Seite 10

Advertising
background image

PCD41

10 www.baumer.com

4.1. Examples of programming storage locations

The following statement applies for the subsequent examples:
Device address = 35; Tachometer mode = R (RUN mode)

Programming of display adjustment bFuP (Line=04, Setting=1000)
Command: <STX>3504P001000<ETX>
Answer: <STX>3504R001000<ETX><CR>

Programming of update time (Line=28, Setting=Pos. 3)
Command: <STX>3528P3<ETX>
Answer: <STX>3528R3<ETX><CR>

Programming of code (Line=40, Setting=1234)
Command: <STX>3540P1234<ETX>
Answer: <STX>3540R1234<ETX><CR>

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

5. Special commands

The special instructions are, with the exception of the instruction "Clear tachometer value and maximum value",
instructions that do not refer to any line number (storage location in operating plan).

5.1. Clear tachometer value and maximum value

The tachometer status (Line 1) or the maximum value (Line 2) can be cleared via the following special
instruction. These are lines that cannot be programmed. All other lines in the programming plan (except the
separating lines) are cleared by programming the value 0 (as described under item 4).
The clear instruction corresponds to a reset via the C key. The response (answer) of the tachometer when
clearing is the same as for the reading instruction of the corresponding line.

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

Example: Clearing of maximum-value memory HIGH (Line 2)
Address=35, Line=02, Status=RUN mode
Command: <STX>3502<DEL><ETX> <DEL> = 7FHex
Answer: <STX>3502R000000<ETX><CR>

5.2. Switch tachometer to PGM mode or RUN mode

This instruction allows to switch between the PGM mode and the RUN mode whenever polling. The current line
number and the current status after execution of command will be returned as answer.
General: <STX> Address <DC1> <ETX>

Example: Address=35, Status=RUN mode, Current line = 1
Command: <STX>35<DC1><ETX> <DC1> = 11Hex
Answer: <STX>35P<ETX><CR>

If the instruction is repeated, the program switches back to the RUN mode
Command: <STX>35<DC1><ETX>
Answer: <STX>35R<ETX><CR>

5.3. Switching to next line

This instruction allows to switch the display to its corresponding next line. The function is available in the RUN
mode as well as in the PGM mode. The contents of the current line (after switching) is returned as answer.

Example: Address=35, Status=RUN mode, Switch from Line 1 to Line 2
Command: <STX>35<LF><ETX> <LF> = 10Hex
Answer: <STX>3502R000100<ETX><CR>

Advertising