RBC Posted December 6, 2019 Report Share Posted December 6, 2019 (edited) Hi. W've done couple of projects linking unilogics and unistream plc to indusoft scada system. Now I'm battling to get comms to the io part of the plc. Registervalue's we can get but any bolean point no comms. Anybody have experience between indusoft and unistream plc. Thanks. Edited December 6, 2019 by rcerva Added screenshot Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 7, 2019 MVP 2022 Report Share Posted December 7, 2019 Coils are 0x prefix. 1X are real inputs. Joe T. Quote Link to comment Share on other sites More sharing options...
RBC Posted December 7, 2019 Author Report Share Posted December 7, 2019 Hi Joe. Thanks for the reply. We have 1x setup in other systems for inputs, outputs and internal coils and it worked. I've changed the internal coils to 0x now and they work. But my inputs and outputs than is on 1x does not work. [ID: 2524] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 0X:252 to 0X:296 > Ok [ID: 2524] Tx:00 00 00 00 00 06 FF 02 00 00 00 DE [ID: 2524] Rx:00 00 00 00 00 1F FF 82 1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 00 00 00 00 00 00 00 00 Error, Command: 0x82, Status: 0x1C [ID: 2524] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 1X:1 to 1X:222 > Status: 28 [ID: 2524] Tx:00 00 00 00 00 06 FF 04 00 00 00 16 [ID: 2524] Rx:00 00 00 00 00 2F FF 04 2C 00 25 00 25 00 26 00 24 00 24 00 26 00 24 00 ...Rx:26 00 44 00 1E 00 1E FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 [ID: 2524] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 3X:1 to 3X:22 > Ok Do you know what the status 28 is in that row. Thanks. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 7, 2019 MVP 2022 Report Share Posted December 7, 2019 4 hours ago, rcerva said: Error, Command: 0x82, Status: 0x1C 4 hours ago, rcerva said: Do you know what the status 28 is in that row. I'm guessing you meant 82. If you're going to get deep into troubleshooting Modbus then you need to browse this document, which is the original Modbus protocol description: http://www.modbus.org/docs/PI_MBUS_300.pdf Starting on page 22 you'll see the function code descriptions. First off, looking at your transmission block, using 1X is just bad form unless the device's modbus table description specifically calls them "inputs". Reading inputs is code 02, reading coils is code 01. Look at this page: https://ipc2u.com/articles/knowledge-base/detailed-description-of-the-modbus-tcp-protocol-with-command-examples/ If you send a Modbus command and the slave chokes on it, it returns the command with the error bit which corresponds to hex "80". So "02" incorrectly sent becomes "82". You also have 3X embedded in your requests, which shouldn't work either. They should be 4X for holding registers. 3X is for input registers, and it's not common to use these anymore. If 1X and 3X work in devices on your Indusoft Modbus configuration then it means the creators of the devices probably put code in to accept either command or they really truly designed the devices to the old Modicon PLC specification, where 1X were discrete input modules and 3X were analog input modules. I'm getting close to going on a rant so I'll just leave it at that. In summary you should really only be using 0X and 4X in your Modbus table. And yes, we have done Web Studio projects. It used to be a really cost-effective platform before Wonderware "Software that's Fun-to-Wear" bought them out and doubled all the license prices. Joe T. Quote Link to comment Share on other sites More sharing options...
RBC Posted December 8, 2019 Author Report Share Posted December 8, 2019 Error, Command: 0x82, Status: 0x1C [ID: 12B4] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 1X:1 to 1X:222 > Status: 28 Statur :28 of the last line. Will modify today again and see what happens. When I tried 0x for the inputs and outputs it gives me different error messages again. Also the registers on the 3x was on 4x but did not want to work. The 2nd pic I attach is the settings of driver. If I make the 32 block size 64 as in other systems I loose the values as well. Is there something on the Unitronics side that I need to change? Thanks. If you can assist with teamviewer then maybe it can help. What other scada system do you use now instead of Indusoft. We build drying room for fresh fruits and use basically for temp logging and machine status with the scada. Thanks again for all assistance. Sitting in West Africa now with the installation so internet and things not that reliable. Rodger Quote Link to comment Share on other sites More sharing options...
RBC Posted December 8, 2019 Author Report Share Posted December 8, 2019 Error, Command: 0x81, Status: 0x25 [ID: 1168] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 0X:1 to 0X:296 > Status: 37 Changed all the 1x to 0x and get this error. Quote Link to comment Share on other sites More sharing options...
RBC Posted December 8, 2019 Author Report Share Posted December 8, 2019 Error, Command: 0x81, Status: 0x25 [ID: 1028] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 0X:1 to 0X:296 > Status: 37 [ID: 1028] Tx:00 00 00 00 00 06 FF 03 00 00 00 40 [ID: 1028] Rx:00 00 00 00 00 83 FF 83 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 BB A0 00 0D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Error, Command: 0x83, Status: 0x80 [ID: 1028] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 4X:1 to 4X:64 > Status: 128 [ID: 1028] Tx:00 00 00 00 00 06 FF 03 00 40 00 0C [ID: 1028] Rx:00 00 00 00 00 1B FF 03 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...Rx:00 BB A0 00 0D 00 00 00 00 [ID: 1028] MOTCP Read Block - Station: 192.168.7.120:502:255, Address: 4X:65 to 4X:76 > Ok If I change block size to 64 then this happens. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 8, 2019 MVP 2022 Report Share Posted December 8, 2019 Don't forget that Unitronics starts Modbus addresses at 0, and UniStream only makes available what you define. If your SCADA app asks for data the UniStream is not configured to serve up then it won't work. Post your code or PM it to me so I can see your exact Modbus configuration. Joe T. Quote Link to comment Share on other sites More sharing options...
RBC Posted December 8, 2019 Author Report Share Posted December 8, 2019 Hi. Here is unistream and indusoft tags. io tags This is the analogs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.