Generate dl5 variable data (ctrl-v) command – Rockwell Automation 2706-DXX Dataliner Message Display DL5 Series User Manual

Page 112

Advertising
background image

2706-UM001A-US-P

D-4

Application Notes

Generate DL5 Variable Data
(Ctrl-V) Command

The conversion routine generates a DL5 Ctrl-V command. In this example,
the 16-bit signed integer is in N17:0. the ^V is in ST13:9 and
\\1\\127^M^M is in ST13:10 The ladder program below converts the
integer to an unsigned ASCII string (using the previous conversion
program) U:6 and then creates the Ctrl-V serial command string in ST13:20
This command can then be sent out to the DL5.

For example: Send 53272 to DL5 with address of 127

ASCII

^V

5

3

2

7

2

\

1

\

1

2

7

^M

HEX

16h 35h 33h 32h 37h 32h 5Ch 35h 5Ch 31h 32h 37h 0Dh

CTRL-V

Variable

Data

\

Backslash

Variable

Carriage

Return

Position

\

Backslash

DL5

Address

JSR

Jump to Subroutine
Prog File Number

0000

ACN

String Concatenate
Source A

ST18:5

Dest

ST18:7

0001

Source B

ST18:6

0002

ACN

String Concatenate
Source A

ST13:9

Dest

ST13:19

Source B

ST18:7

0003

ACN

String Concatenate
Source A

ST13:19

Dest

ST13:20

Source B

ST18:10

RET

Return

0004

0005

END

U:6

To Previous Program

Advertising