Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Communication Drivers

Pascal Style

  • Last UpdatedSep 05, 2024
  • 1 minute read

If strings are read using the Pascal Style, each string uses a length obtained from the first byte of the string to store data in the server. The PLC string is stored in the server string as is, up to the length obtained from the first byte of the string. If the length is greater than the number of registers defined in the item, then the PLC string is stored in the server string as is, up to the maximum number of registers.

The first byte written of any string of this style contains the character count. The string being written starts in the second byte. If a string is written and the string plus the character count are shorter than the allocation of registers, it is padded with ASCII null characters (hex 00).

For example:

If the string "Communications" is stored in the string item "400001-400010 m," registers 400001 through 400006 contain the string "(10)Communications0" and registers 400007 through 400010 contain nulls. The (10) in the string implies one byte containing the character count.
If the string "Communications" is stored in the string item "400001-400005 m," registers 400001 through 400005 contain the truncated string "(9)Communication."
A message is placed in the logger indicating that the string was truncated.

TitleResults for “How to create a CRG?”Also Available in