32
Rockwell Automation Publication 5069-UM003B-EN-P - January 2020
Chapter 3
Compact 5000 I/O Serial Module Features
Generic ASCII Transmit Functions
In Generic ASCII mode, you can define any kind of data to be transmitted to
communicate to serial devices. Some examples are barcode scanners, dial up
modems, serial printers, temperature controllers, and so on.
Generic ASCII Transmit Methods
To transmit the ASCII packet based on the number of characters, follow
these steps:
1. For this method, configure Termination Mode for Ignore End Delimiter.
2. After copying the characters into the ASCII.TxData output tag array, write
the number of characters into the ASCII.TxDataLength output tag, then
increment the ASCII.TxID output tag.
To transmit the ASCII packet based on the termination delimiter characters,
follow these steps:
1. For this method, configure Termination Mode for either Include or
Exclude.
2. After copying the characters into the ASCII.TxData output tag array, copy
the two configured termination delimiter characters as the next two
characters in the array, then increment the ASCII.TxID output tag. While
doing this, keep the TxDataLength output tag at 0.
Table 7 - Generic ASCII Transmit Functions
Parameter
Definition
Available Options
Swap Mode
Select whether swapping will be done or what swapping method is to be
used before the module sends output data to the Serial Port or after the
module receives input data from the Serial Port.
• No Change (default)
• Word Swap - After executing a word swap on 32-bit hex value
11112222, the result is 22221111.
• Byte Swap - After executing a byte swap on 32-bit hex value
11223344, the result is 22114433.
• Word and Byte Swap - After executing a word and byte swap on 32-bit
hex value 11223344 the result is 44332211.
Termination Mode/
Delimiter
Selecting the termination mode of each channel. Choose to ignore or
include the delimiter.
• Ignore End Delimiter (default) - Transmits packet based on number of
bytes specified only.
• Exclude Delimiter - Determines end of data when it finds the
Termination Delimiter characters, but doesn’t transmit the
Termination Delimiter bytes with the packet.
• Include Delimiter - Determines end of data by Termination Delimiters
and transmits them.
Termination Delimiter 1
Configure the channel's termination delimiter.
• 7 bit $00…$7F
• 8 bit $00…$FF
Termination Delimiter 2
Configure the channel's termination delimiter.
• 7 bit $00…$7F
• 8 bit $00…$FF ($FF = disabled)
TIP
Include transmits the packet with termination delimiter characters, and
exclude does not.
Содержание Allen-Bradley 5069-L3100ERMS2
Страница 1: ...Compact 5000 I O Serial Module Catalog Numbers 5069 SERIAL User Manual OriginalInstructions ...
Страница 130: ...130 Rockwell Automation Publication 5069 UM003B EN P January 2020 Appendix A ModuleTags Notes ...
Страница 143: ...Rockwell Automation Publication 5069 UM003B EN P January 2020 143 Programming Example Appendix C ...
Страница 146: ...146 Rockwell Automation Publication 5069 UM003B EN P January 2020 Appendix C Programming Example ...
Страница 155: ......