PLC Pie Guy
Member
Good day all.
As promised, I have what is likely the first of a few questions regarding the Micro820.
I have some good material to read from and have browsed through it. (Most of it, the manual is 700+pages).
Now I need to get something started.
I have set my ips, added my plug ins, downloaded the User Defined Function Block and all is well on the hardware side.
I am working on a very simple program. This is to run a glue machine with patterns specific to machine position.
The first thing I need to do is figure out the best way to make a "glue recipe".
If I were using CLX I would simply create an array of a UDT of dints and bools to accomplish what I wish each element of the array with its parameter variables as per its recipe number.
What I am not sure is how to get this started here as I do not have the luxury of a UDT.
This is roughly what I am looking for.
Glue_Rec[1] = Gun_1.Solid (bool)
Gun_1.Spare (bool)
Gun_1.Start_pos_1 (dint)
Gun_1.End_pos_1 (dint)
Gun_1.Start_Pos_2 (dint)
Gun_1.End_pos_2 (dint)
Gun_1.Start_pos_3 (dint)
Gun_1.End_pos_3 (dint)
Gun_1.Solid_Start_pos (dint)
Gun_1.Solid_End_pos (dint)
Like wise for Gun 2
So , question 1 is how can I create a UDT that mimics the structure I have here for Gun_1?
Question 2 is can I create an array of these UDT?
Thanks for any help offered.
As promised, I have what is likely the first of a few questions regarding the Micro820.
I have some good material to read from and have browsed through it. (Most of it, the manual is 700+pages).
Now I need to get something started.
I have set my ips, added my plug ins, downloaded the User Defined Function Block and all is well on the hardware side.
I am working on a very simple program. This is to run a glue machine with patterns specific to machine position.
The first thing I need to do is figure out the best way to make a "glue recipe".
If I were using CLX I would simply create an array of a UDT of dints and bools to accomplish what I wish each element of the array with its parameter variables as per its recipe number.
What I am not sure is how to get this started here as I do not have the luxury of a UDT.
This is roughly what I am looking for.
Glue_Rec[1] = Gun_1.Solid (bool)
Gun_1.Spare (bool)
Gun_1.Start_pos_1 (dint)
Gun_1.End_pos_1 (dint)
Gun_1.Start_Pos_2 (dint)
Gun_1.End_pos_2 (dint)
Gun_1.Start_pos_3 (dint)
Gun_1.End_pos_3 (dint)
Gun_1.Solid_Start_pos (dint)
Gun_1.Solid_End_pos (dint)
Like wise for Gun 2
So , question 1 is how can I create a UDT that mimics the structure I have here for Gun_1?
Question 2 is can I create an array of these UDT?
Thanks for any help offered.