By Angelo Lopez Magtoto on December 1, 2023
Intermediate

Fix Transfer Cannot Reset


If the transfer cannot reset as shown below:


1


Follow these steps to fix the issue:


1. Open the Designer Launcher application and log in with the right username and password.


2


2. Proceed to step 5 if the gateway is already added, if not, click Add Designer.


3


3. Then click the Manually Add Gateway button.


4


4. Enter the correct gateway then click Add Gateway.


5


5. After logging in, open the correct project where the error occurs.


6


6. Upon opening the project, click the Tools on the upper left tabs.


7


7. In the Tools menu, click Script Console.


8


8. Copy and paste the code below in the Multiline Buffer:

plant_items = [{'plantItemID': '811', 'plantAttribute': '0', 'plantType': '2'}, {'plantItemID': '37', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '38', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '39', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '40', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '54', 'plantAttribute': '2', 'plantType': '16'}, {'plantItemID': '26', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '860', 'plantAttribute': '0', 'plantType': '46'}, {'plantItemID': '36', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '609', 'plantAttribute': '0', 'plantType': '41'}, {'plantItemID': '56', 'plantAttribute': '1', 'plantType': '16'}, {'plantItemID': '52', 'plantAttribute': '0', 'plantType': '40'}, {'plantItemID': '861', 'plantAttribute': '0', 'plantType': '46'}, {'plantItemID': '51', 'plantAttribute': '0', 'plantType': '48'}, {'plantItemID': '27', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '46', 'plantAttribute': '0', 'plantType': '26'}, {'plantItemID': '47', 'plantAttribute': '0', 'plantType': '73'}, {'plantItemID': '571', 'plantAttribute': '0', 'plantType': '23'}, {'plantItemID': '823', 'plantAttribute': '0', 'plantType': '10'}]

tag_path = []
values = []

for item in plant_items:
tag_path.append("[default]Drive/Motor_Drv_{}/Selected".format(item['plantItemID']))
values.append(0)
tag_path.append("[default]Drive/Motor_Drv_{}/Slot_ID/Slot_ID_0".format(item['plantItemID']))
values.append(0)

system.tag.writeBlocking(tag_path, values)

9


9. Then proceed to click the Execute Button.


10


10. After executing the block of code, the result should all be good like the example below.


11


11. The issue should now be fixed.


12


More articles on GG Mills



More articles on GG Mills
Comments

No comments yet.

Add a comment
Ctrl+Enter to add comment