- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Power unit tree filename (TRN) send periodically when ECHOF is disabled
Power unit tree filename (TRN) send periodically when ECHOF is disabled
7 years 9 months ago - 7 years 9 months ago #29530709
by Herman
When I disable ECHOF (^ECHOF 1) the controller keeps on sending the Power Unit Tree filename (TRN) when running a script.
Script sends the encoder position in hex format each ms.
serial log:
.....
x00000000
x00000000
x00000000
x00000000
x00000000
x00000000
x00000000TRN=SBL1XXX:SBL1360
x00000000
x00000000
x00000000 .......
When I pause the script for a moment the controller stops sending the TRN.
Could I run the script with ECHOF disabled without getting the TRN response periodically ?
I noticed this behaviour using the Console Tab in the Roborun+ utility
Thks, Herman
Script sends the encoder position in hex format each ms.
serial log:
.....
x00000000
x00000000
x00000000
x00000000
x00000000
x00000000
x00000000TRN=SBL1XXX:SBL1360
x00000000
x00000000
x00000000 .......
When I pause the script for a moment the controller stops sending the TRN.
Could I run the script with ECHOF disabled without getting the TRN response periodically ?
I noticed this behaviour using the Console Tab in the Roborun+ utility
Thks, Herman
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29530712
by TechSupport
Replied by TechSupport on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
Could be something either in the script that is causing this, or something else.
^echof 1
^echof 1
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29530714
by Herman
Replied by Herman on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
I think it is something else because there is nothing in the script which is demanding for TRN:
top:
dim rem[8] as integer
for i=0 andwhile i<8
rem[i] = 0
next
i = 0
print("\n")
print("x")
pos = GetValue(_ABCNTR)/10
while pos > 0
rem[i] = pos mod 16
pos = pos/16
i++
end while
for i=7 andwhile i>=0 evaluate i--
if rem[i]=10 then
print("A")
elseif rem[i]=11 then
print("B")
elseif rem[i]=12 then
print("C")
elseif rem[i]=13 then
print("D")
elseif rem[i]=14 then
print("E")
elseif rem[i]=15 then
print("F")
else
print(rem[i])
end if
next
wait(1)
goto top
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29530715
by TechSupport
Replied by TechSupport on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
?trn gets sent everytime the controller while connected to Robrun or a program listening to serial or usb. It can also result if the controller loses connection and regains connection. Usually though, it also sends ?fid.
Try a reset to defaults, and reconfigure your controller and run your script again.
Try a reset to defaults, and reconfigure your controller and run your script again.
Please Log in or Create an account to join the conversation.
7 years 9 months ago - 7 years 9 months ago #29530720
by Herman
Replied by Herman on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
I did some debugging:
Reset to defaults, reconfigure and run script: no problem occurs, script output as expected
The problem happens after
- set echo disabled (^ECHOF 1, %EESAV)
- set script autostart (^BRUN 1 1, %EESAV)
- restart controller by power cycle off/on
Problem is related to the use of the Roborun+ utility (Console Tab). Also no pop-up "Controller found Do you want to read ....." is launched.
When I use another serial port app FID / TRN is only send once which is normal behaviour.
Suggestion: Could it have to do with the history cmds (# #C) send by the Roborun+ utility after the COM port connection has been established?
Herman
Reset to defaults, reconfigure and run script: no problem occurs, script output as expected
The problem happens after
- set echo disabled (^ECHOF 1, %EESAV)
- set script autostart (^BRUN 1 1, %EESAV)
- restart controller by power cycle off/on
Problem is related to the use of the Roborun+ utility (Console Tab). Also no pop-up "Controller found Do you want to read ....." is launched.
When I use another serial port app FID / TRN is only send once which is normal behaviour.
Suggestion: Could it have to do with the history cmds (# #C) send by the Roborun+ utility after the COM port connection has been established?
Herman
Please Log in or Create an account to join the conversation.
7 years 9 months ago #29530723
by TechSupport
Replied by TechSupport on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
It sends # C which clears the old buffer history.
Any time you connect to our utility it only sends ?TRN and ?fid once. If it shows up again after that, then it would be a different issue.
Any time you connect to our utility it only sends ?TRN and ?fid once. If it shows up again after that, then it would be a different issue.
Please Log in or Create an account to join the conversation.
7 years 9 months ago - 7 years 9 months ago #29530756
by Herman
Replied by Herman on topic Power unit tree filename (TRN) send periodically when ECHOF is disabled
Found a solution: add a few seconds wait statement like wait(5000) at the start of the script.
I think the problem is caused due to the immediate script output, Roborun app is not able get a proper reply on ?TRN and ?FID when found a controller connected to the COM port.
Roborun will continue to poll the controller by sending ?TRN and ?FID.
But for me it is OK now, issue is solved.
Herman
I think the problem is caused due to the immediate script output, Roborun app is not able get a proper reply on ?TRN and ?FID when found a controller connected to the COM port.
Roborun will continue to poll the controller by sending ?TRN and ?FID.
But for me it is OK now, issue is solved.
Herman
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Power unit tree filename (TRN) send periodically when ECHOF is disabled
Time to create page: 0.074 seconds