Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Hello From A New Member

Charles101
2013-09-22
2013-12-16
  • Charles101 - 2013-09-22

    I'm glad I found this forum on the internet. I'm building the prototype of a new machine in our house in Phoenix, AZ, USA. The machine will utilize a new LM 3108 PLC from China and a Weintek 6050i HMI. The HMI uses Easybuilder. The PLC uses CoDeSys. I've been successful programming the HMI with touch screens, but writing programs in CoDeSys with the PLC software manual has been a struggle. I know the HMI will operate as the master, and the PLC as the slave in MODBUS RTU. I'm sure I can write the PLC program with enough self-study. But for now, I don't know how to integrate the HMI program into the LD program for the PLC.

    IMG: PLC, 9

     
  • shooter - 2013-09-24

    use markers (%M0.1) etc.
    you can ask them in your HMI.

     
  • Charles101 - 2013-09-24

    I'm still trying some things. The problem is: to establish communication between the HMI and the PLC. I've built the assembly in the photo, so I can write short programs to turn the motor on and off. I've been reading the software manuals for the PLC and the HMI for the past few months. It would be a big success to start the motor by touching a button on the touch screen of the HMI.

     
  • Charles101 - 2013-09-25

    Attached are screen shots of the Codesys program and the HMI program. I know I haven't entered some of the necessary data in the Codesys Program. I'm still studying the software.

    IMG: HMI Screen.jpg

     
  • Charles101 - 2013-09-25

    Here is the Codesys screen shot.

    IMG: Codesys Screen.jpg

     
  • sarathbabu - 2013-12-12

    Codesys is easy to program so u can tell roughly what sort of sequence you are looking for?

    Trust me try ST,FB and SFC instead of Ladder logic you will succeed fast

     
  • Charles101 - 2013-12-12

    Thanks. I've found a programmer who is helping me online at Elance.com.

     
  • shooter - 2013-12-15

    aha i saw your elance but did not react on it.
    i see %QX0.0 that should be coil_1
    where is the motor_on FB in the POU list.
    there should be a POU called PLC_PRG

    i see VAR CONSTANT
    but all u use should be under
    VAR
    here your list like Coil_1
    END_VAR

    give the function block another name as the program itself.

    start with simpler one
    add POU
    it will start with PLC_PRG
    set the type on ladder
    VAR
    startbutton at %MX0.0 :BOOL; ( this is address 40000 )
    input1 AT %IX0.0 :BOOL; ( this is an input on the PLC, if active the output should go on when everything is correct )
    output1 AT %QX0.0 :BOOL; ( this is your coil )
    END_VAR
    program

    startbutton as a contact
    make a extra input and OR it with your startbutton
    OR input1

    and output1 as the coil

    go online
    it will ask to download the program
    go to start

    now program is running
    make input1 active.
    and yes you can PM me
    e shooter@home.nl e however i like it via this forum so others can see what is happening and learn from it.

     
  • Charles101 - 2013-12-15

    Thanks very much for your help. I'm in the middle of the process of collaborating with an experienced programmer in India. We're using teamviewer. I sent your information to him.

     
  • shooter - 2013-12-16

    sent the program by exporting it to me and i will have a look, please make lots of comments in your program so i can see what you like to have.
    if flowsheet available please
    and what should the unclear picture do?

     
  • Charles101 - 2013-12-16

    It's okay. I'm working online with the other programmer on Elance. He is very experienced, and I'm sure we'll succeed.

     

Log in to post a comment.