The value in DB8001.DBW52 is an integer equal to the number that the operator has entered in the first network, say part 3...
Byte 52 of every part in the 1-100 array will be what that part is (this should be reflected in DB8001). So the byte in DB8001.DBW652 should be the value of '3', along with all the other data that belongs to part '3'.
I have no idea what FC302 is doing. That's where you come in...
When the operator pushes the button to unclamp the chuck I want to send a pulse that moves the data from
-DB8001.DBW0 (198 bytes) which is a known DB that can be addressed directly, and move those 198 bytes into
-DB8001.DBW[whatever_part_operator_chose] (for 198 bytes). Which is a dynamic area that we won't know until the operator enters it on the HMI and clamps up the part (at which point I will have to put in logic the part that loads from 'whatever' area of the DB into DB8001.DBW0~198).
If DB8001.DBW52 is equal to part 36 then all of the data that is in
DB8001.DBW0 to DB8001.DBW198 (DB8001[0])
should be copied over to
DB8001.DBW7200 to DB8001.DBW7398 (DB8001[36])
with the value of '36' in DB8001.DBW7252 (for verification).
Thank you for your time. If there is an easier way to do all this, please let me know.
Thanks
Byte 52 of every part in the 1-100 array will be what that part is (this should be reflected in DB8001). So the byte in DB8001.DBW652 should be the value of '3', along with all the other data that belongs to part '3'.
I have no idea what FC302 is doing. That's where you come in...
When the operator pushes the button to unclamp the chuck I want to send a pulse that moves the data from
-DB8001.DBW0 (198 bytes) which is a known DB that can be addressed directly, and move those 198 bytes into
-DB8001.DBW[whatever_part_operator_chose] (for 198 bytes). Which is a dynamic area that we won't know until the operator enters it on the HMI and clamps up the part (at which point I will have to put in logic the part that loads from 'whatever' area of the DB into DB8001.DBW0~198).
If DB8001.DBW52 is equal to part 36 then all of the data that is in
DB8001.DBW0 to DB8001.DBW198 (DB8001[0])
should be copied over to
DB8001.DBW7200 to DB8001.DBW7398 (DB8001[36])
with the value of '36' in DB8001.DBW7252 (for verification).
Thank you for your time. If there is an easier way to do all this, please let me know.
Thanks