|
Sending ASCII Data Strings with a PLC ObjectivesThis article provides general information about transmitting ASCII data strings from a PLC. IntroductionApplications often require the need to send specific character strings from a PLC to an externally connected, third party device. External hardware such as bar code readers, vision systems, modems and other devices may require transmission of commands in the form serial data during operation. Omron PLCs have several hardware configurations that can communicate in this fashion.
ContentHardware Configuration
To send (and receive) ASCII data using one of the above hardware configurations, the serial port must be set to RS-232C mode/No-protocol Mode*. This prevents other protocols such as NT-Link or Host Link from being applied to the serial communications. When RS-232C/No-Protocol mode is selected, the user has the ability to control the start code and end code for each message transmitted. The start code and end code must match the external device specifications in order to establish communications. *NOTE: When changing the mode of a serial port, always check any hardware dip-switch settings in the related hardware manual. User Program
SummaryThis article is a general overview of sending ASCII data strings from a PLC. More detail and examples can be found in the CS/CJ/NSJ Series Instruction Reference Manual (Cat. No. W474).
Link: |
| Comments | ||
|
||