Standard
RLL
Instructions
5–111
Standard RLL Instructions
Message Instructions
V-memory element
– this is used for printing V-memory contents in the integer
format or real format. Use V-memory number or V-memory number with “:” and data
type. The data types are shown in the table below. The Character code must be
capital letters.
NOTE:
There must be a space entered before and after the V-memory address to
separate it from the text string. Failure to do this will result in an error code 499.
#
Character code
Description
1
none
16-bit binary (decimal number)
2
: B
4 digit BCD
3
: D
32-bit binary (decimal number)
4
: D B
8 digit BCD
Example:
V2000
Print binary data in V2000 for decimal number
V2000 : B
Print BCD data in V2000
V2000 : D
Print binary number in V2000 and V2001 for decimal number
V2000 : D B
Print BCD data in V2000 and V2001
Example:
The following example prints a message containing text and a variable.
The “reactor temperature” labels the data, which is at V2000. You can use the : B
qualifier after the V2000 if the data is in BCD format, for example. The final string
adds the units of degrees to the line of text, and the $N adds a carriage return / line
feed.
X1
Print the message to Port 2
when X1 makes an off-to-on
transition.
K2
“Reactor temperature = ” V2000 “deg. $N”
∧
∧
Message will read:
Reactor temperature = 0156 deg
∧
represents a space
V-memory text element
– this is used for printing text stored in V-memory. Use the
% followed by the number of characters after V-memory number for representing the
text. If you assign “0” as the number of characters, the print function will read the
character count from the first location. Then it will start at the next V-memory location
and read that number of ASCII codes for the text from memory.
Example:
V2000 % 16
16 characters in V2000 to V2007 are printed.
V2000 % 0
The characters in V2001 to Vxxxx (determined by the number
in V2000) will be printed.
Содержание DL05
Страница 1: ...DL05 User Manual Automationdirect com ...
Страница 2: ...DL05 User Manual Automationdirect com ...
Страница 436: ...1B DL05 Error Codes In This Appendix Ċ Error Code Table ...
Страница 443: ...1C Instruction Execution Times In This Appendix Ċ Introduction Ċ Instruction Execution Times ...
Страница 459: ...1D Special Relays In This Appendix Ċ DL05 PLC Special Relays ...
Страница 464: ...1E DL05 Product Weights In This Appendix Ċ Product Weight Table ...
Страница 466: ...1F European Union Directives CE In This Appendix Ċ European Union EU Directives Ċ Basic EMC Installation Guidelines ...