
32
Rockwell Automation Publication 5069-UM003A-EN-P - May 2018
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 5 - 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.
Summary of Contents for 5069-SERIAL
Page 1: ...Compact 5000 I O Serial Module Catalog Number 5069 SERIAL User Manual OriginalInstructions...
Page 9: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 9 Preface Notes...
Page 10: ...10 Rockwell Automation Publication 5069 UM003A EN P May 2018 Preface...
Page 88: ...88 Rockwell Automation Publication 5069 UM003A EN P May 2018 Appendix A Module Tags Notes...
Page 101: ...Rockwell Automation Publication 5069 UM003A EN P May 2018 103 Programming Example Appendix C...
Page 104: ...106 Rockwell Automation Publication 5069 UM003A EN P May 2018 Appendix C Programming Example...
Page 109: ......