-
Posts
3,275 -
Joined
-
Last visited
-
Days Won
239
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Flex727
-
-
Do you have 24V power connected to your E3XB snap-in module?
-
2 minutes ago, tsiz said:
I did not find any information Ofir indicated (VisiLogic - Vision700 - Using Ethernet ) on the Unitronics website . Could anybody give a link to this document
Ofir was referring to the Help function in VisiLogic, not the Unitronics website.
-
By the way, there are a large number of example projects included with your VisiLogic installation which show you how to do common tasks. There is also a very extensive Help file with examples. Further, there are You Tube videos, made by Unitronics personnel to teach the basics of VisiLogic programming. (I'm not trying to discourage you from posting here, but you may find those resources very helpful)
-
Just now, Cartier said:
Analog output 0 (0-10V) is associated to MI 0. If MI 0 is set to max-value (about 30000), I should have 10V on analog output 0, isn't?
No! You need to know if the analog output is 10-bit, 12-bit, or 14-bit. If 10-bit, the value of MI 0 should be 0-1023, if 12-bit, 0-4095, and if 14-bit, 0-16383.
You don't need to write to the analog output, just assign a value to MI 0.
-
8 minutes ago, Cartier said:
What is the regular kind for inputs/outputs ? It's the main routine
Just use contacts for digital inputs and coils for digital outputs.
-
Is there some reason you need Immediate Reads and Writes instead of the regular kind?
-
Using an SD card to store the values may be a bit cumbersome and slow. You can easily have a Data Table in the project with 1000 rows and read or write whatever data you need to or from the table.
-
There is no need to reset total sessions or acknowledgments, though you can if you are using the numbers for some purpose.
-
Yes, I noticed that change somewhere around VisiLogic 9.5 or 9.7. It only happens with certain color combinations. I'd like to see it fixed also.
-
Oops, one more:
5) You need a CONNECT FB in your master PLC.
-
It looks like you have a number of problems that are easily resolved.
1) In the master, use a polling timer so that you are not trying to exchange data on every PLC cycle. I know MB 201 will prevent that, but a few extra milliseconds generally helps with MODBUS IP. I usually poll at 100ms intervals, but you can go much faster if you absolutely need to.
2) In the slave you do not need to configure socket 2 - you are scanning on socket 3.
3) Also, you are using SB 149 to gate your SCAN_EX FB - this will prevent the SCAN_EX FB from being executed. You should be using SB 146.
4) You do not need the SCAN_EX FB for the SCADA in your slave PLC.
-
Glad to hear and thanks for letting us know.
-
You have several alternatives. You can use latched bits and SET & RESET them appropriately or you might see if a TE timer would serve your purposes better (with slightly different triggering logic), or there might be other options depending on your overall logic.
-
Does something turn off MB 71 when the output reaches max value? If not, you are incrementing then decrementing on each PLC cycle, thus leaving the output unchanged.
-
I haven't encountered this particular error, but an important consideration is that VisiLogic MUST be installed "as Administrator" and the program file MUST be "Run as Administrator".
-
Sure you can - easily. When you have the ladder displayed, look just above the ladder window and you'll find a drop down labeled "Data Tables". It has all the ladder commands you'll need to store, manipulate, and recall data from the data tables. You'll need to create your data table first with the properties you need for your application.
-
Look on that toolbar that runs vertically between the two primary panes in VisiLogic. When you have an HMI screen displayed on the right side, you will have nearly everything you need for adding display elements to you HMI screen. One of the icons will say "ASCII String" (Near the top, under "Text") when you hover over it with the mouse. Click that icon (not click and hold) then draw the box on the screen to the size you want (you can change it easily afterwards).
There is also a dedicated Password entry box a little further down, under "Numeric".
-
I haven't tried it, but you can assign an indirect operand for Y-Min and Y-Max. I would presume you can calculate your own scaling using those operands.
- 1
-
On 4/14/2017 at 9:55 AM, Flex727 said:
Bottom line, only INPUTS can be forced, no other memory operand can be made to take on a value manually if it is being assigned in ladder on every scan. You cannot override the ladder logic from VisiLogic.
Just want to clarify - both INPUTS and OUTPUTS can be forced, but I believe the rest of my statement about other memory operands stands.
Thanks for the heads up, @Ausman!
-
Are you calling that subroutine in the Main Routine?
As I said before, FORCE is only for INPUTS, not MBs. You can only manually SET or RESET a bit if it is not being activated by a Direct Coil in the ladder. Also in your picture in net 1, you have a SET coil (MB100) being activated by a Direct Contact (MB78). You cannot manually Reset MB100 as long as MB78 is on.
Bottom line, only INPUTS can be forced, no other memory operand can be made to take on a value manually if it is being assigned in ladder on every scan. You cannot override the ladder logic from VisiLogic.
-
You can never manually Set or Reset any bit that is being activated by a Direct Coil. The only way this can happen is if the coil is in a subroutine that is not being called by the Main (or other) Routine. Post your code here and we can help you.
-
I meant more specifically, what is the problem you're trying to fix here?
-
@JMorel, can you restate what it is you're trying to do?
-
As I said, Force is only for Inputs, as in memory addresses that start with "I".
SMS sending problem
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
Why do you re-initialize your COM INIT 1 with each press of Plus/Minus and on MB100 Force Send? This may be the source of your problem.
Also, unrelated to your problem, but you do not need ladder rung 12. Just SET the Power-Up for SB 168 - no need to SET it on every PLC cycle.