tonymony Posted December 18, 2015 Report Share Posted December 18, 2015 Hello, I am new in this forum and in unitronics, for this reason I have too many problems when I set up V700. I am following the manual "Using Ethernet" to V700 and I could not watch the IP address with I need to set up downloads throught the ethernet cable PC-PLC. When I try to simulate in visilogic anyprogram appears the next window "Run-time error 5 invalid procedure call or argument" I will start this topic with these questions. Thanks. Quote Link to comment Share on other sites More sharing options...
Alexander Posted December 18, 2015 Report Share Posted December 18, 2015 We recommend running our software as an administrator. This is a Windows setting that if not applied can generate the run time errors as you have seen. It is not likely anything you have done or set up within your project. To run VisiLogic as an administrator, right click on the VisiLogic Icon, choose Properties, navigate to the Compatibility tag, and select the box labeled ‘Run this program as an administrator’. Hopefully this should eliminate the error you are experiencing. How did you set the IP address within the controller? Did you program it over serial first, or did you set the IP address through info mode in the controller? Quote Link to comment Share on other sites More sharing options...
tonymony Posted December 18, 2015 Author Report Share Posted December 18, 2015 Quote Link to comment Share on other sites More sharing options...
Alexander Posted December 18, 2015 Report Share Posted December 18, 2015 There was not any information in your reply. Were you successful in solving the issue? Quote Link to comment Share on other sites More sharing options...
tonymony Posted December 18, 2015 Author Report Share Posted December 18, 2015 There was not any information in your reply. Were you successful in solving the issue? Sorry, I lost the internet connection and the reply appears in white. Yes, the errors were gone Okey, I set up the unitronics' program for v700 in order to configurate ethernet connection: My purpouse is set up the IP address to connect the V700 directly to the ethernet port to speed up the transmition. But I dont know how to get this IP Thanks Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 20, 2015 MVP 2022 Report Share Posted December 20, 2015 You're not initializing the Ethernet card properly - you have to set the IP address with a combination of the TCP/IP Card Init block and a PLC Name block. Look up the Help on these blocks so you understand how they work. MB 1 is optional. Joe T. Quote Link to comment Share on other sites More sharing options...
Alexander Posted December 21, 2015 Report Share Posted December 21, 2015 Yes, as Joe mentioned you must first initialize the Ethernet card using a specific function block (TCP/IP Card Init). This function block can be found under the COM TCP/IP menu in VisiLogic. The IP Address, Subnet Mask, and Default Gateway will be defined in this block either using a defined value, or by linking a vector of 4 MI's for each address. Quote Link to comment Share on other sites More sharing options...
tonymony Posted December 24, 2015 Author Report Share Posted December 24, 2015 So the conclusion is, if I want a dynamic IP address linked to anyvalue I will use vectors with 4 MIs and if I want a static address I can define directly to xxx.xxx.xxx.xxx in each field. So, once I set up IP/TCP protocol, could I introduce this address in the communication port to download projects PC-PLC faster than USB? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 24, 2015 MVP 2022 Report Share Posted December 24, 2015 Yes you can do that. Socket 1 will default to Port 20256 for PLC-PC communications. If you initialize Socket 1 to a different port, then you will need to initialize one of the other sockets to port 20256. Be sure you also use the PLC Name function block to give the PLC a useful name for communications from your PC. Quote Link to comment Share on other sites More sharing options...
tonymony Posted December 24, 2015 Author Report Share Posted December 24, 2015 I have another question, sorry because I am newbie with Unitronics's PLC. A vector is a composed of different operands, for example, I set up one in MI0 with lenght 4, the full vector is MI0,MI1,MI2,MI3, the question is if I have to set up IP addresss for example 198.168.1.1 each value corresponds to each MI which will be the "Vector address"? I only can link one MI to the IP addrees is it MI0? then visilogic knows that MI1,MI2,MI3 are linked to this one? Quote Link to comment Share on other sites More sharing options...
Alexander Posted December 28, 2015 Report Share Posted December 28, 2015 You are correct. When linking a vector it will automatically use the sequential operands after the starting location. So in your example if you select MI0, it will automatically use MI 0, 1, 2, and 3 for the vector. Each one will represent an octet within the IP address. Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 6, 2016 Author Report Share Posted January 6, 2016 I try to set up the ethernet card again and the error SB168 comes up, then I power up SB168 and visilogic show me an error of compatibility with V700. Anybody have idea about this? What I am trying to do is connect PC-PLC, I was reading about MODBUS, I don't know if I need to set up MODBUS settings. Thanks Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 6, 2016 Author Report Share Posted January 6, 2016 http://subefotos.com/ver/?c0a4171d3cd3861187851c8c73191b39o.png]http://thumbs.subefotos.com/c0a4171d3cd3861187851c8c73191b39o.jpg This is my Routine Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted January 6, 2016 MVP 2022 Report Share Posted January 6, 2016 Be sure your PC and PLC are set up on the same subnet (e.g. 192.168.1.xxx). Check in INFO Mode what the IP address of the PLC is and the PLC Name and be sure those are properly entered in the communications section of VisiLogic. Make sure you are connecting the PLC and PC either through a hub or with a crossover cable. Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 7, 2016 Author Report Share Posted January 7, 2016 I have the same problem when I set up communication throught TCP/IP listen Quote Link to comment Share on other sites More sharing options...
Alexander Posted January 7, 2016 Report Share Posted January 7, 2016 Is your PC the device that is listening? If so you will need to perform a TCP/IP connect function from the PLC's ladder code. Can ping the PLC from the PC? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted January 7, 2016 MVP 2022 Report Share Posted January 7, 2016 I don't know if you really need the PLC to be the Master, by try it the other way first. Initialize the PLC Socket to Port 20256 and Slave. Set up the PC communications in VisiLogic to TCP/IP (Call). Confirm the PLC Name and IP address are correct, then try to initiate communications from your PC. Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 13, 2016 Author Report Share Posted January 13, 2016 Hi everybody, I have still the same problem, I will try to ping the PLC as Alexander said. Anyway, anybody know how to create a timer/pulse, I do not know If I should use a pwm. I have 2 states for a sounder: 1- Continuous sound 2- Intermitent sound The continuous is obvious, but no the intermitent, so what I am trying to program is a intermitent pulse when some swith is on Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 13, 2016 Author Report Share Posted January 13, 2016 I have a question, why my PLC screen appears I white, and sometime flash my programmed screen in visilogic? Quote Link to comment Share on other sites More sharing options...
tonymony Posted January 13, 2016 Author Report Share Posted January 13, 2016 For example, in the sounder that I mentioned before I have another problem, when I set different pictures for each state, sometimes the picture does not work properly and stay in the previous state, but when i change the range again change properly. 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.