-
Posts
3,257 -
Joined
-
Last visited
-
Days Won
236
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Everything posted by Flex727
-
This simple program was posted on this forum some time ago. It's for VisiLogic, but you may be able to adapt it. Here is a screenshot of the relevant logic in case you don't have VisiLogic installed: V570_Random_number_generator.vlp
-
Has anyone come up with a way to set a Vision PLC clock from the internet? I have a V1210 connected to the Internet and I'd like to keep the clock reasonably accurate. I can go online with it at any time and set it from my PC through VisiLogic, but I need to find a way to automate the process to keep it accurate.
-
communication between PLC
Flex727 replied to meuhporg's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Also, do NOT use SB 3 for your communications. If one second intervals are sufficient for your communications, use SB 13. SB 3 will cause the PLC to attempt comms on every PLC scan for fully half of each second. You want to trigger communications with a transition contact or SB 13, which is automatically a transition contact. And place an inverted contact of MB 100 in front of the comms FB. -
communication between PLC
Flex727 replied to meuhporg's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
First of all, you need to Read Holding Registers (R.H.R #3), not Read Input Registers (R.I.R #4). Also, you can read and write bits (coils) directly using Read Coils #1 and Force Coils #5 or #15. But the simplest method when you are communicating between two Unitronics Vision PLCs is to use the FB Read/Write Mixed Data. This FB allows you to enter a mix of operands and read or write them directly using a single function call. -
Be sure you are running Version Swapper from the latest version of VisiLogic you have installed. Do not use the Version Swapper from the older versions of VisiLogic.
- 6 replies
-
- windows 10 visilogic
- version swapper
-
(and 1 more)
Tagged with:
-
KepServer to V700
Flex727 replied to Yuri7811's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Output coils start at address 4000h (16384 decimal). Or you can assign an MB to the Output coils and read those instead. -
KepServer to V700
Flex727 replied to Yuri7811's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
The Socket will revert to Port 20258 when the PLC is power cycled or Reset. Add the Socket 2 Initialization block to your program to prevent that. -
Modbus TCP/IP
Flex727 replied to carlosm78's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
It looks like the FATEK supports MODBUS/TCP. Just set up your FATEK with the MODBUS TCP parameters as a slave and assign IP addressing, port number, etc. Match that on the V700 side as Master and it should work easily. There are example projects that came with your VisiLogic installation that will show you what to do in the V700 for MODBUS TCP Master. -
I don't have time to got through your logic in detail, but here are a few suggestions as to best programming practices: 1) Do not rename the Main Routine. Use it for Power-Ups, configurations blocks, and subroutine calls only. 2) Do not place multiple logic threads in a single ladder rung, as you have done in Rung 4 of Relay Control. 3) It is usually best to keep the logic simple and use more ladder rungs. You will not run out of rungs. 4) Rung 1 of Relay Control should probably be simplified (break it up into multiple rungs) and I think it's odd that you are using a direct contact activating an Increment function. You will be incrementing that register on every scan until the HMI button is released. Use a Positive Transition contact unless you are trying to count how many scans go by during a button press for some unfathomable reason. That said, most of your code looks pretty good and your HMI screens are terrific.
-
Pawar
Flex727 replied to Vijaykumar Pawar's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
I moved this to the correct forum. You're unlikely to find someone to write your software for you for free. I recommend that you either hire a programmer to write your software, or undertake the task of learning how to program. If you do that and have questions or difficulty, the kind folks on this forum will help you. -
This is ambiguous. Do you want the output to turn on for 2 seconds after the button is pressed (this is what you have), or do you want the output to turn on after the button has been held down for 2 seconds? Also, you appear to have the Power-Up for O0 as SET. This will turn on the output as soon as the PLC boots up. Is this what you intended?
-
Did you confirm in Device Manager that COM 3 is the correct com port? If you had to change hard drives, you may have a different driver for your USB to Serial adapter. Try re-installing that driver.
-
Make sure you have selected the proper COM port in the U90 Ladder, as it can sometimes change. Go to Device Manager to confirm.
-
I watched the attempted moon landing today with great anticipation. Sadly, there was a failure just seconds before the landing which prevented the mission from being a total success, however, I would like to congratulate the Israel Space Agency, Israel, and all the Israeli people for what they did accomplish. This was a private initiative that attempted to do something that only 3 other nations have accomplished in the history of man (and something that none of them are still able to accomplish). What they did successfully accomplish was to place a spacecraft into a stable orbit around the moon, which also has only been performed by three other nations. This was an inspiration to us all and I am certain the next attempt will be 100% successful.
-
Seems like there should be an easy answer to this, but I don't see it. I'd like to flash text on a web page (i.e. flashing warning message). Using Frequency.Frequency 1 (s) to turn a visibility bit off & on doesn't work, presumably because the web page is not refreshing often enough. I know there are HTML tags to allow text to flash, but how to make UniLogic do that?
-
Need help with basics
Flex727 replied to hEllberg's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
As Joe said, this isn't Unitronics software. While it may be useful as a learning tool, I would never use it in a production environment. The PLCs themselves are relatively inexpensive - buy one to use for development if you are doing serious programming. It is the only way to ensure you are getting the results that will work in a actual production environment. I say this as an independent contractor - I have no relationship with Unitronics except for the assistance I provide on this user forum.