Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
"My life is a soap opera, but who has the rights?"
-- MadameX
-- MadameX
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
How to use the xxmit block? Do you have any idea?
Just apply the xxmit function block to communicate with my RS232-485 converter? Should I use other blocks to communicate?
Thanks in advance...
Just apply the xxmit function block to communicate with my RS232-485 converter? Should I use other blocks to communicate?
Thanks in advance...
I have been using this function in a lot of different cases and places, and I think I can help you. It's enough to use the XXMIT function to read data, but you have to set correctly all the parameters:
Command: 2100H for RS485 or 100H for RS232
Message lendth: Usually 5
Port: The number of the Port you are using
Baudrate: 9600, 19200, etc
Databits: Usually 8
Stopbits: Usually 1
Parity: Usually 2
Response tout: 1000
Retry Lmt:3
Startdly:100
Enddly:600
For message out you need an array [1..12] where you only use the 5 first elements, and they are:
Message[1]: Operation code :3 read registers
Message[2]: Number of registers that you read
Message[3]: Modbus address of the slave that you read
Message[4]: Address where you read (slave)
Message[5]: Address where you place the data (master)
Command: 2100H for RS485 or 100H for RS232
Message lendth: Usually 5
Port: The number of the Port you are using
Baudrate: 9600, 19200, etc
Databits: Usually 8
Stopbits: Usually 1
Parity: Usually 2
Response tout: 1000
Retry Lmt:3
Startdly:100
Enddly:600
For message out you need an array [1..12] where you only use the 5 first elements, and they are:
Message[1]: Operation code :3 read registers
Message[2]: Number of registers that you read
Message[3]: Modbus address of the slave that you read
Message[4]: Address where you read (slave)
Message[5]: Address where you place the data (master)
From Control Engineering magazine...
Related articles from Control
Engineering magazine- Rockwell Automation releases VantagePoint for plant data visualization
- Tips for sustainability in manufacturing
- Deadline extended: Nominate award winning products now for upcoming competition
- Video listen in: Making Coriolis two-wire demands small sacrifices
- Fast HMI application development software
- HMIs: Rugged, instrument-grade-glass on projected capacitive touchscreens
- Third-party remote I/O available for ControlLogix, CompactLogix
- Control system and instrumentation design software
Above articles copyright 2008 Reed Business Information.
Subject to its Terms of Use.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




