Matchu04
Lifetime Supporting Member
Hi Guys back again..
I am wondering if some of you guys could help me understand the actual process of this block I believe I understand how it operates but the logic at the end seems to be what I expect..
Let me paint the picture.
What we have got is two machines that in essenince the same machine. One de-stacks a pallet of keys (Deunitiser) and the other stacks them back up once they have been washed filled and checked (Unitiser).
The hoist on the Uni seemed to be not as smooth as the deUni and the two pics of the blocks I have attached are for the speed control for the hoist. As you can see the Uni has had its valves changed to 0.
Hardware wise the PLC is used to create a 4 bit binary output with is feed to a 0-10v D-A module (seperate from PLC) then that analog signal to the drive.. Simple
My issue comes with understanding the numbers within the code. So in the mid section of the code there are a few conditons that determine which jump condition to execute so changing the binary output thus the 0-10v input to the dive but this is where I dont feel confident..
So the binary outputs are
M004 (240 Ored with 15 = 255 dec or 1111 1111) ie 100% or 10V
M002 (240 Ored with 2 = 242 dec or 1111 0010) ie 10% or 2 V
M003 (240 Ored with 6 = 246 dec or 1111 0110) ie 50ish% or 5V
M004 (240 Ored with 4 = 244 dec or 1111 0100) ie 20ish% or 4V
M005 (240 Ored with 1 = 241 dec or 1111 0001) ie 0% 0V
Is this correct?
Another question I would like to ask is the and word at the begining of the code, is that in effect limiting the valve of output byte to a max of 240??
Any guidence would be greatly appreciated...
I am wondering if some of you guys could help me understand the actual process of this block I believe I understand how it operates but the logic at the end seems to be what I expect..
Let me paint the picture.
What we have got is two machines that in essenince the same machine. One de-stacks a pallet of keys (Deunitiser) and the other stacks them back up once they have been washed filled and checked (Unitiser).
The hoist on the Uni seemed to be not as smooth as the deUni and the two pics of the blocks I have attached are for the speed control for the hoist. As you can see the Uni has had its valves changed to 0.
Hardware wise the PLC is used to create a 4 bit binary output with is feed to a 0-10v D-A module (seperate from PLC) then that analog signal to the drive.. Simple
My issue comes with understanding the numbers within the code. So in the mid section of the code there are a few conditons that determine which jump condition to execute so changing the binary output thus the 0-10v input to the dive but this is where I dont feel confident..
So the binary outputs are
M004 (240 Ored with 15 = 255 dec or 1111 1111) ie 100% or 10V
M002 (240 Ored with 2 = 242 dec or 1111 0010) ie 10% or 2 V
M003 (240 Ored with 6 = 246 dec or 1111 0110) ie 50ish% or 5V
M004 (240 Ored with 4 = 244 dec or 1111 0100) ie 20ish% or 4V
M005 (240 Ored with 1 = 241 dec or 1111 0001) ie 0% 0V
Is this correct?
Another question I would like to ask is the and word at the begining of the code, is that in effect limiting the valve of output byte to a max of 240??
Any guidence would be greatly appreciated...