Twincat2 Ladder Diagram

ncys

Member
Join Date
Mar 2017
Location
UK
Posts
2
Hello,

I am a beginner to PLC and now working with the PLC by using Twincat2 to build a Ladder Logic Diagram to generate the simulation of manufacturing line which the repeat cycle is needed.

How could it be done to make it repeat which it needs 5 cycles to produce 5 boxes to place on the conveyor?

Should I use the COUNTER with JUMP or should I use new POU with Structure Texted?

Thank you,
Nat
 
A counter should work fine. I haven't worked with Twincat for a few years now, but I wouldn't think you would need a JUMP instruction. Simply use the the "counter done" bit to move things forward after the 5 boxes are made.

Bubba.
 
A counter should work fine. I haven't worked with Twincat for a few years now, but I wouldn't think you would need a JUMP instruction. Simply use the the "counter done" bit to move things forward after the 5 boxes are made.

Bubba.

Thank you for your suggestion.

I would like to ask a few more question, if I use Counter and set its preset value to be 5 (as I need 5 cycles for this station) each time that it count, is it going to start from the first rung again to start feeding the box or should I put any function or instruction to make it start all over again?

Nat
 
I don't know about TwinCat . . . but most PLC's continuously repeat their programs. What I would do, is write the program with the counter. After the counter hits zero reset the counter to five (last rung in the program) then run it and see if the counter resets to five and starts decrementing the next set. (And another set and another set etc. etc.)
MadPoet.
 

Similar Topics

Ok so probably a really dumb question. How do I do set a variable equal to a value in ladder? I can't seem to find a ':=' equivalent in ladder...
Replies
1
Views
1,330
Hi All, I have to connect a slave (Digiforce 9311) to EtherNET/IP scanner (EL6652). The EDS file informations must be transfered into IO...
Replies
0
Views
368
I have 10 years expereience about programming TwinCAT2 PLC. However, there is still one thing that I can't find a best solution about updating the...
Replies
0
Views
812
I have some code that is going to trigger calculations to happen either when "A" happens, or every 1 second. For the 1second trigger, I am...
Replies
3
Views
1,640
I am needing to convert the low DWORD of a timestamp into a LREAL. The DWORD is a 32bit unsigned number. In TwinCat2, I keep getting a negative...
Replies
3
Views
1,704
Back
Top Bottom