
Visit our shop for nerds in control lifestyle products.
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
-- Steven Wright
www.control.com/rss
Well, the communication seems to go very well indeed, using Read_Var and Write_Var blocks in a FBD program in the M340. (That's once I'd worked out _exactly_ how to use Unity's powerful functions.) But when I try to cancel a communication using the Cancel function, (during testing, I'd disable the slave so it couldn't reply, to see what happened) it seems as if the M340 PLC ignores the Cancel function, and just keeps on with the three retries and three second timeouts.
I call the Cancel function while the Read_Var or Write_Var function is still active, and use the current communications number, and there appear to be no errors from the Cancel function, so why doesn't the Cancel function work?
Hoping I'm not the first who's had this problem,
Kind regards,
Roger Valmadre.
Kind regards,
Roger Valmadre
rvalmadre@_removethisbit_csr.com.au
Did you find something for the problem already?
Sorry for the lateness of this post, but I haven't looked at this thread for a couple of weeks. :-(
Unfortunately, I haven't found a solution to this comms problem. I have contacted Schneider Electric Australia, and got feedback from one of their engineers; however, his response was basically that he didn't understand why it was happening, either. He and I both agreed that it _may_ be a firmware bug in the 340, and hopefully Schneider would release an update to it eventually. (Schneider is usually pretty good for this.)
If you (or anyone else reading this) find anything, feel free to email me at
rvalmadre@PLEASE_REMOVE_CAPITALS_csr.com.au
Kind regards,
Roger Valmadre.
The worked example for the Cancel command in the Help files is close enough. Key is to get the correct sequence number. Also note in some comms, your command is completed quite quickly so think about error handling using the comms report and either disable comms to the device or put it on a slow poll like the Magelis panels do that allows an auto restart to the comms when the device is available. If you are concerned about retries, etc., change the port settings.
I knew that Schneider would eventually release a firmware update.
I've also carefully noted your other comments with regard to sequence number and retries.
As far as I (or the helpful Schneider engineer) knew, my programming was using the correct sequence number to attempt the cancellation.
As for retries, they seem to be fixed at 3 when the port is dynamically switched to "master" mode, which is how I'm trying to use it. (Of course, we could use seperate communications ports for master mode and slave mode, but that involves other hardware, and we were hoping to avoid that, as it means there's something else in the system which can fail.)
Anyway, thanks for your comments, and the news on firmware updates.
Kind regards,
Roger Valmadre.
- Embedded control: 3 companies help embedded-system developers
- Multi-zone: PID, data acquisition supports ramp/soak control
- 3U, 16-slot: GE Fanuc Intelligent Platforms announces programmable signal conditioning
- Networks: Production machinery needs better security
- Wireless: Free software enhances remote keyless entry security
- Bridge safety: System uses acoustic emission to detect compromised suspension cables
- PLC origins: Where did PLCs come from? 40th anniversary timeline
- Acoustic measurements: Tutorial on decibels, microphones
- Vision help: Service helps users implement imaging algorithms
- Data integration: See, use, study integrated automation information
Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.
Patronize our advertisers!


