Jump to content

navigatoru

Members
  • Posts

    42
  • Joined

  • Last visited

Posts posted by navigatoru

  1. Hello Marius,

     

    The AND/OR/XOR logic functions evaluates the state of two integers.

    This gates can not be use with MB directly.

    You can convert a two vectors of MBs to MIs then use the gates between this two MIs.

     

    VIsiLoigc uses Ladder diagram to program the PLC

    In ladder diagram you can do what you wish with two dirrect contacts and a direct coil as fallow.

     

    ---[MB1]----[MB2]------(MB3)

     

    regards.

     

    Hi EduMarg, 

     

    Thanks for reply. 

    I tried to find in the manual how to convert the vectors of the MB to MI. 

    It is something as 

    MB1=1 -> MI1=00000001

    or

    MB2=0 -> MI2=00000000

    ?

    Could be a silly question, but I am not sure about Visilogic philosophy ... 

     

    Cheers, 

    Marius

  2. Hi guys, 

     

    I tried to do a logic for some MBs such us:

     

    If MB01=1 AND MB02=1 then 

       MB03=1

    Else

       MB03=0

    End If

     

    I've found the AND, OR and XOR gates in the Logic menu, but looks like these gates don't accepts as input the MBs (just MI, XI, ML, etc).

    There is a reason for not accepting MBs as inputs? 

    There is any option to have these gates for MBs?

     

    Cheers for help, 

    Marius

     

  3. Hi guys, 

     

    I need a little help with the email configuration.

     

    What I have done:

    - Initialised a TCP/IP socket 3 when the PLC starts:

    SB2-Power-up bit>PLCName:V1210>TCP/IPCardInit (with a local IP address)>TCP/IP Socket Init (Socket 3, Protocol: TCP, Local Port D#-20256)

    - Used a MB100 (Connect to server) to try to connect to the remote server. The net looks like: MB100 ON>SB142 (Ethernet Card Initialised) ON > SB151 (Ethernet Status Link) ON > SB146 (Ethernet Socket Initialised) ON > SB150 (Ethernet Socket 3 Connected) OFF

     

    The TCP/IP: TCP Connect function block is configured as follows:

    - Socket : Socket 3

    - Remote IP: 203.12.160.34 (my email server IP)

    - Remote Port: 25

     

    If I am connecting through telnet to 203.12.160.34 (telnet 203.12.160.34 25 in cmd) I get the following message:

    220 mail.tpg.com.au ESMTP (mail15) Sendmail ready.

     

    Not sure why in Visilogic the SB150 is OFF, telling me that there is no connection to the remote server (203.12.160.34:25), but I can go to this address via telnet. 

     

    Any idea would be much appreciated :)

     

    Cheers,

    Marius 

     

  4. I am trying to make a comparison between an analogue input value (MI) and a constant (10) using the "Greater than" function block. 
    So, normally if the MI > than 10 then a MB become true. 

    Looks like the comparison function block works (became red) in the Online test, but is not passing the value to the MB (the MB value stays black). 

    I am using the function block as it is described in the Visilogic - Ladder Programming manual (attached the section from the manual). 

     

    What  I am doing wrong?

     

    Cheers

    post-25198-0-28264800-1413543159_thumb.png

  5. All right. The issue is solved. 

     

    Issue: 

    How to "pulse" an Output Oxx by pressing/releasing a Button on the HMI.

     

    Solution:

    The steps are as follow: 

    - create a Button on the HMI

    - assign a MBxx to the Button

    - create the logic in the ladder: a direct contact assigned to MBxx linked to a Coil assigned to the Output Oxx (the output that you want to "pulse"). 

     

    That's it. Works.

     

    Thanks guys for your help !

             

  6. Hi mate,


    I tried your program, unfortunately without my expected results (to pulse the physical output from IO-D16A3-T016 module). 


    Attached is a sample of the program in which I have used your advice and has inside some comments.


     


    This is exactly what I need: 


    Quote:


     "the pulse to be generated when the button is pressed and released" 


    I tried this (from your program) without success. 


     


    Any help is greatly appreciated. 


     


    pulse_output.vlp

  7. Hi guys, 


     


    I need a button on the HMI display which will "pulse" an output (from an IO-D16A3-TO16 module) when is pressed/released. I know that it is possible by assigning a MB to that button, continue with a set coil, and after that a reset coil assigned to the output, but I could not find how to proper program the ladder. 


    There is any example showed somewhere? I looked after a solution on forum, but I could not find something that could suit my need. If it is explained somewhere, I would kindly ask to post the link here. 


    Any help would be greatly appreciated (and if is explained for dummies would be wonderful). 


     


    Thanks


     


  8. As you described you can use a coil triggered by pressing the button, and this can power a timer with a preset value of 100ms. You can then reference this timer as a positive transition contact within the logic connected to a coil for an output.

     

    Using this logic the output will only be turned on for one scan if you want to pulse an output. If you wish for the output to remain on for more than one scan or a period of time you can set a coil for the output and use a second timer to turn off the output after a desired time.

    Thanks for your answer. Is exactly what I was thinking, but my issue is that I am not able to put this expression in a ladder. I tried to put a button on HMI, I assigned a (mouse click) MB30, I continued in the net with a timer (Store>Load TimerCounter Preset), and finished with a coil (for Output), but nothing.

    There is a tool somewhere to debug the code line by line? Basically to see the output for the ladder ... 

    As I said in my previous post, with the Toggle option, I can assert the Output, but I have to press again the button to deassert the output, which is not exactly what I need. 

    Any help is much appreciated.

    Cheers, 

    Marius

  9. Hi guys, 

     

    I understood how can I latch an output. It is very easy with the Toggle option in VIsilogic. Now, my issue is on how to "pulse" an output. Using the toggle option I can not reset the latch ...

    Basically I need a button on the HMI display which will "pulse" an output when is pressed for 100ms. I know that it is possible by using a set coil after that a timer(100ms) and after that a reset coil for the output, but I could not find how to proper program the ladder. 

    Any help would be greatly appreciated.  

     

    Thanks

×
×
  • Create New...