Jump to content

Henny

Members
  • Posts

    66
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Henny

  1. Hello Peter With the tool your using you are sending (querying) Modbus data so this means that your pc with the tool installed is acting as a modbus master also known as modbus client. You used the modbus master program in your unitronics controller and I think this is the problem because you have setup two modbus masters. On the download page from the Vellamod tool there you can read an line that says Server's response is shown at window 'Data received'. Try to use the Modbus slave example in your Unitronics controller the use of a Modbus slave is explained in the visilogic help file. Modbus master can also be called Modbus client Modbus slave can also be called Modbus server Hope this will help you? Regards Henny
  2. Hello Jared So MI466 = 0004Hex and MI467 = 008BHex Take MI466 shift it 8 places to the left and store the result in a spare MI(MI800). Then bitwise or MI467 to this in my example MI800 and this result you can store to another spare MI(MI801) and it contains then 1163. MI466 00000000 00000100 after bitshift 8 MI 800= 00000100 00000000 MI467 = 00000000 10001011 Result MI801= 00000100 10001011 (1163) I don’t have Visilogic at the computer I’m making this post but if I'm correct you can find the bitshift and OR functions in Logic tab from ladder. Hope this brings you to the solution? Regards Henny
  3. Hello David Good to hear that your problem is solved! I'm curious about the master and slave addres Ron mentioned,did you have to make changes in your program at this point or was it only the cable? Did you use your initial com port setting 8 N 2 of the 8 N 1 setting Joe purposed? I'm only asking this for learning purposes Kind regards Henny
  4. Hello David Ok the flow control doesn,t work. The slave and master address should be different as Lawry mentioned (didn't notice it) so it's good that more people look into your problem. If changing the id numbers doesn,t solve the problem you could check the RS232/485 dipswitch settings because you mention jumper settings but if you read the installation guide from V1210(it's also with a V570) (Can’t find one from V1040) then these settings are carried out by means of 6 dipswitches http://www.unitronics.com/Downloads/Support/Technical%20Library/Vision%20Hardware/V1210%20-%20Installation%20Guides/V1210-T20BJ_INSTALL-GUIDE_03-14.pdf When you read the visilogic communication manual http://www.unitronics.com/Downloads/Support/Technical%20Library/VisiLogic%20Software/Software%20Manuals/VisiLogic%20-%20Communications.pdf At page 15 jumper setting JP1-4 are mentioned for the V120 and perhaps also some other models? Joe also mentioned the port settings 8 N 2 are unusual and that mostly 8 N 1 is used but here is a link to a document http://support.ctc-control.com/customer/techinfo/docs/5300_951/951-530021.pdf and at page 10 you can see that 8 N 2 is not unusual for modbus RTU with RS485 I,m still wondering why the communication worked on a V120 with master and slave both having the same ID? Regards Henny
  5. Hello David How about turning on "flow control" in the com port init? Here is a link that explains flow control in more detail. http://www.moxa.com/resource_file/509820091121333.pdf The Port pinout is the same in both a V120 and a V1040 but as you already wrote it seems like the V120 handles the RS485 communication differently than the V1040. So perhaps the Flow control setting in the "com init" is worth a trial? Otherwise I hope for you that Joe has another good idea. Regards Henny
  6. Hello ahoover No thanks Good to hear that the communication works now between your V350 and Red lion PAX2D display. Henny
  7. Hello ahoover So you use the PAXCDC20 RS232 output card with terminal block and not the PAXCDC2C with the DB9 port? While Modbus communication works between the V350 you using and another one the problem is definitely not the V350 hardware. Then in the PAX2D display manual at page 2 there is a note about Modbus communication. 1. For Modbus communications use RS485 Communications Output Card and configure communication (tYPE) parameter for Modbus So perhaps Modbus is not possible with PAXCDC20 RS232 output card and can only be done with RS485 module PAXCDC10 or PAXCSC1C? At page 4 of the PAX manual(first link in your first posting) you find how to set the protocol to modbus RTU but I assume that you already have this setting correctly done? Also found a datasheet on the internet about the optional comm cards.Reading this at page 6 using a PAXCDC40 - Modbus (Terminal) http://www.farnell.com/datasheets/1748232.pdf The manual of the PAXCDC20 RS232 output card also doesn’t mention Modbus communication only serial ascii communication and no protocol setting can be find to change between ascii or Modbus RTU. If this is true and you want to stay to you current configuration then you have to make a new program for the V350 using the FB protocol to send and receive ascii characters over the RS232 line. and otherwise get in contact again with Red Lion to find out about the different output cards and possible communication protocols. Regards Henny
  8. Hello ahoover I assume that you have constructed the communication cab le yourself by using a 4 wire telephone cable with RJ11 connecter at one side and a DB9 male connecter at the other side ? If you have a spare DB9 Female connecter and replace it with the DB9 male and connect it like a programming cable so that you can go online to the V350 with visilogic? In this way you know if you cable is correct. Or do you have a working programming cable that you can use to figure out that the RS232 port on the Vision is working. In your first mail you mention that communications stops if you connect pin 5 GND db9 to pin 2 or 5 From V350. Did you also test if you connect pin 5 GND db9 to pin 2 and 5 from V350? Here is also a link to a Unitronics manual about communication. http://www.unitronics.com/Downloads/Support/Technical%20Library/VisiLogic%20Software/Software%20Manuals/VisiLogic%20-%20Communications.pdf Unfortunately I don’t remember how I connected my 4 wire telephone cable to a DB9 male connecter to set up the communication between a V570 and a Brady BBP11 label printer because later when the project was finished I used a Unitronics RJ11 programming cable with a MJ10-22-CS76 adapter. If it doesn’t help perhaps you can contact Unitronics support so that they can help you further otherwise you never can get your project finished. Have a good weekend. Regards Henny
  9. Hello ahoover I assume that you also have the correct serial settings in Red lion so Baud rate 19200,8 data bits,1 stop bit and parity NONE and de communication protocol is set to Modbus RTU and slave address is 2. For communication adaptor the MJ10-22-CS76 should be the correct one cost about 12 euro. I used it for communication between a V570 and a Brady BBP11 label printer. If the V350 has two serial ports did you also try with com 2? Are the dipswitches for comport in V350 correct set for RS232(factory setting) and not RS485 could be if the unit was used before for another purpose? What is the value of MI600 when you try to read a register, should be zero if communication is correct otherwise you can find info in visilogic help file. Did you also make use of the visions info screen to monitor the data and settings from the serial port? Hope these suggestions can help you any further? Regards Henny
  10. Hello ahoover Perhaps the info on this site will help you any further? http://www.lammertbies.nl/comm/cable/unitronics-rj11.html Regards Henny
  11. Hello ahoover Without reading the red data station manuals you mention that TXD from Vision is connected to TXD from red lion and RXD from Vision to RXD from red lion. But when I’m not mistaken TXD from Vision(transmit data) should be connected to RXD(receive data) from Redlion and RXD Vision(receive data) to TXD (transmit data)from Red lion. But I assume that you have already tried this? Regards Henny
  12. Hello Active Just did a simple test with Kepserver and selected the ”Modbus tcp/ip driver” Channel properties=>Ethernet settings selected port 502 and ip protocol tcp/ip. Added a device and named it device1 and for the model selected “modbus”. ID <135.0.2.78>20 The V570 has this ip address and 20 is the slave number in my test situation. In the V570 socket init in my case socket 3 port number 502 and server(slave) followed by A Modbus ipconfig,selected in this function block socket 3 and gave it network id 20,time out 100 and retries 3 and assigned a function in progress mb. The indexes with slaves can be deleted using the clear link button. The next network has to have a “Modbus ip scanex” block and for the name in this block select the name of the Modbus ip config block. TCP card init was already done somewhere else in the program but you could follow the example explained in the visilogic helpfile and it’s called “configuring a modbus slave device”. In this example for the gateway you have to choose the ip address of the master unitronics plc but this is only needed I think if communication is between Unitronics plcs so leave the TCP settings in this block as they should be four your local network. For addresses see the example in the visilogic helpfile called “slave addressing” under Modbus ip. To test this all I started kepware opc quick client and added here an item “channel1.device1.40032” and here I can see the actual value from MI31 So kepware acts as a Modbus client and the V570 as a Modbus slave device in this situation. Did no projects with kepware and Unitronics but in our plant we have some Unitronics plc,s besides TI(CTI) PLC,s connected to Control Maestro(Wizcon) scada using Kepserver so this is why I could quickly made a simple test. Hope it will help you Regards Henny
  13. Hello Drozerce It just slept into my mind but you didn’t mention in your first posting how your Vision 130 plc is connected to pc where uniopc and wonderware scada is installed, Is it over Ethernet or serial? In my test with Uniopc and Wizcon(Control maestro) scada the connection was over Ethernet. Another question that I’m curious about is how do you deal with a situation when there is no communication between the Vision plc and the scada pc with Uniopc and Wonderware because in my test over ethernet when I disconnect from my vpn connection al the values in the Uniopc kept their last values and personally I find this a bad situation because operators viewing the scada system think al machines are running well and it takes I while before they find out that the screen values are frozen. When I have the same situation with kepware opc and CTI(Company that took over the Texas Instruments plc,s from Siemens) then as soon as the connection gets lost you see dashes on the screen and operators will notice this kind of situation immediately . If you don’t have to handle a lot of data then Modbus could also be a solution if wonderware has a Modbus client driver(and you don’t have to buy it). Also I’m assuming that if you make use of wondware intouch scada system that the V130 isn’t the only plc that is connected to this system but that there are probably more Unitronics plc,s or other brand plc,s connected to it? Perhaps you could also setup a communication between the V130 and another plc that has a reliably connection to the wonderware system? I also noticed when googling that Matrikon also has a opc server for Unitronics so that you can test with a demo version because it’s not free of charge like Unitronics software. Like you I also worked with Siemens S5 and S7 plc,s but I’m most experienced in working with CTI(Texas instruments plc,s).When a company brought in a cleaning system with a V230 plc,s in 2005 my personal thoughts at that point was what kind of screen is this and can’t it be replaced by a Siemens or TI plc especially when the Unitronics programmer from the company that installed the cleaning system was no longer available for service. At that point I started to learn Unitronics and from that moment on my thoughts about Unitronics have changed completely.Later on I also used Unitronics plc to control another machine because it,s so easy to handle. The support that Unitronics offer at their website with documentation and webinars are really great and I always refer to the Unitronics website when other manufactures visit our plant and want to sell their automation products as an example how a product should be supported. But back to your opc problem I know that my suggestions doesn’t solve your problem directly but are just some other possible ideas that can lead to a solution. Take your time to find out and let the forum know what your solution is so that I also can learn from it. Regards Henny
  14. As a note on the pdf link sgull gave you another posting on this forum regarding more or less the same issue may also be helpful? http://forum.unitronics.com/index.php?/topic/230-intouch-uniopc-issues/ But if the configuration in wonderware is the problem then you would expect that the communication never works but as Drozerce wrote the updating time is sometimes very long 3 a 4 seconds. Regards Henny
  15. Hello Drozerce Tested Uniopc also in combination with scada system Control Maestro added a tag referencing SI30 (RTC current second) and it updates within 2 seconds. Plc a Vision V570-57-T20 O/S 3.8(11) To figure out if this has something to do with a Wonderware setting simply install a free opc client like Kepware has integrated in kepserverex. Kepserverex https://my.kepware.com/download/demo/ex/?utm_content=EX5-HOME within kepserver is a free client that allows you to test. Another thing that I found out usin Uniopc is when I was testing this I connected to our plant network using a VPN connection.When this VPN connection disconnects and Uniopc can,t connect to the V570 the OPC client keep showing the last updated values.When setting up a same connection with Kepware OPC and other brand plc,s you will get in this kind of situation a unknow value. When reading the Uniopc helpfile it should be possible to set the PLC time out retry(seconds) under File->options->Time out but this setting is not availible. The only settings that can be modified under Time out are "Max update rate" and "Statistics sample period".I installed Uniopc on my labtop with WIndows 7 ultimate 32 bit . Regards Henny
  16. Hello Drozerce Tested it Uniopc with wizcon/control Maestro scada system acting as opc da client and created a tag that referenced SI30(RTC current second). The difference in value viewing SI30 online with Visilogic(on a V570) and scada is about 1 second so not 3 or 4 seconds like you mention. If you want to test if the problem is Wonderware or Unicopc I would suggest testing with a free opc test client like for example kepware has or can be downloaded at other manufactures websites. If the update problem also exists in the test client software then you know that you have to search for the problem within the combination of the V130 and Uniopc otherwise it,s a problem within Wonderware. Regards and have a good weekend Henny
×
×
  • Create New...