JDCROCKETT724
Member
I am trying to copy settings from a DB that stores two different models worth of settings in it to a particular DB.
This is how it works:
I have 3 root structures within my DB. One is the current settings, one is model A and the other is model B. When I change models I copy the specified model to the "Current" settings. These settings are then used by the machine to work.
Within the "Current" struct there are 4 identical structures that need to be copied to their respective DB's. These structures are called INJ1_Settings, INJ2_Settings, INJ3_Settings, INJ4_Settings. There are 9 REAL data types in each one. So I wish to copy INJ1_Settings in the "Current" struct to DB15 which has a struct of the same size and data types as INJ1_Settings. Then copy INJ2_Settings in the "Current" struct to DB16 and so forth.
My Problem:
When triggering the BLKMOV with a one shot the settings in INJ4 are getting transferred to DB15 and NOT the INJ1 settings that I have as the SRCBLK.
Any ideas why a struct 3 away from the one I specified in the BLKMOV is being transferred instead of the one I called for?
Thanks in advance
Edit: I found if I hold the enable on the BLKMOV on instead of triggering it with a one shot that it works as it should. However, I need to keep that as a one shot copy if possible.
This is how it works:
I have 3 root structures within my DB. One is the current settings, one is model A and the other is model B. When I change models I copy the specified model to the "Current" settings. These settings are then used by the machine to work.
Within the "Current" struct there are 4 identical structures that need to be copied to their respective DB's. These structures are called INJ1_Settings, INJ2_Settings, INJ3_Settings, INJ4_Settings. There are 9 REAL data types in each one. So I wish to copy INJ1_Settings in the "Current" struct to DB15 which has a struct of the same size and data types as INJ1_Settings. Then copy INJ2_Settings in the "Current" struct to DB16 and so forth.
My Problem:
When triggering the BLKMOV with a one shot the settings in INJ4 are getting transferred to DB15 and NOT the INJ1 settings that I have as the SRCBLK.
Any ideas why a struct 3 away from the one I specified in the BLKMOV is being transferred instead of the one I called for?
Thanks in advance
Edit: I found if I hold the enable on the BLKMOV on instead of triggering it with a one shot that it works as it should. However, I need to keep that as a one shot copy if possible.
Last edited: