Jump to content

Flex727

MVP 2023
  • Posts

    3,275
  • Joined

  • Last visited

  • Days Won

    239

Posts posted by Flex727

  1. 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)

  2. 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.

  3. 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.

  4. 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".

  5. 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!

  6. 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.

×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.