Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I use DCUTerm to reset brake system counters, at the moment I have to connect to each individual IP, run the script, and move to the next IP. I would like to be able to plug into the IP port and run the scrip so it cycles through a list of predetermined IPs using the same method. Can someone assist with adjusting the code. I am sure it is very simple to someone who knows how.

At the moment i connect to the port, then launch DCUTerm that uses this script. 10.0.1.72 is loaded into the IP address bar with default port 54321.

The program pings the IP and confirms connection, then i click the reset counter button. On completion I then need to manually adjust the IP to 10.0.1.73, and go through the same process and so on.

I would like to connect to the port, have the software ping the first IP to confirm connection, then click "reset counters" and the script will then run through/loop through each IP resetting all counters in one single run.

[SocketSetup]
ConnectToServerIP=10.0.1.72
ConnectToServerPort=54321
RemoteControlServerPort=6001
SkipPingTest=0

[DownLoad]
Speed=
EF1=0
EF2=0
EF3=0
DownLoadType=
DownLoadStartFrom=
DownLoadRestartSpeed=
DownloadFileList_LastLine=0
LastLine=0

[Recorder Dump]
ZName1=
ZName2=

[Dump addr]
Begin=
End=

[OutputDir]
LastDir=

[MCUWinForm]
Signal1=
PlotFact1=
Signal2=
PlotFact2=
Signal3=
PlotFact3=
Signal4=
PlotFact4=
Signal5=
PlotFact5=
Signal6=
PlotFact6=
Signal7=
PlotFact7=
Signal8=
PlotFact8=
Signal9=
PlotFact9=

[DSPWinForm]
Signal1=
PlotFact1=
Signal2=
PlotFact2=
Signal3=
PlotFact3=
Signal4=
PlotFact4=
Signal5=
PlotFact5=
Signal6=
PlotFact6=
Signal7=
PlotFact7=
Signal8=
PlotFact8=

[UploadRecorder]
RecName1=
RecName2=
RecName3=
RecName4=
RecName5=
RecName6=
RecName7=
RecName8=
RecName9=
RecName10=
RecName11=
RecName12=
UploadRate=

[File Written by]
ProgramName=DCUTERM
VersionId=3.4.0.0
File Format=320
WindowsSystemLanguage=ENG
ActiveLanguageFromResource=ENU

[Communication]
AppComState=TCP/IP
VT100=1
Connector=COM1
BaudRate=9600
OS=TRACSOS+/EXT

[DCUTerm Symbolic Addresses]
Index1=
Index2=
WIndex=
HiData1=
LoData1=
HiData2=
LoData2=
LogCh1=
LogCh2=
LogCh3=
LogCh4=
LogCh5=
LogCh6=
LogCh7=
LogCh8=

[DCUTerm Hex Addresses]
Index1=
Index2=
WIndex=
HiData1=
LoData1=
HiData2=
LoData2=
LogCh1=
LogCh2=
LogCh3=
LogCh4=
LogCh5=
LogCh6=
LogCh7=
LogCh8=

[Application]
Name=
IconNumber=0
InfoFileName=
StructTreeFileName=C:\Documents and Settings\LU\Desktop\Laptop SymTree_Files\DCUM_SSL_LTA9X7_2_7_6_2_symTree.txt
AllowEditTreeFile=0
SignalTreeFileName=

[Window]
Left=57
Width=780
Top=20
Height=597
FontName=Lucida Console
FontSize=9
FontBold=0
ShowStructTree=0
ShowTraceWin=0
TraceWinStayOnTop=1
TraceWinLeft=22
TraceWinWidth=640
TraceWinTop=29
TraceWinHeight=419
ShowHistWin=0
VerticalSplit=0
HorizontalSplit=247

[View]
Buttons=1
TraceWinDescriptions=1
TraceWinSignalnames=1
TraceWinTimeSpanIndex=0

[Return value]
Target Data=1
TypedScaledData=0
Physical Units=0
Half Precision=0
BinaryData=0
HexData=0
DecimalData=0
FractionalData=0

[ButtonSets]
ActiveSet=Default set
Set_0=Default set

[ButtonSet_Default set]
Btn0Line0=;Dynamic brake counter reset
Btn0Line1=
Btn0Line2=FLS
Btn0Line3=
Btn0Line4=FLC. *
Btn0Line5=
Btn0Line6=O MWT.MXX_DB.Enable/0/.
Btn0Line7=O MWT.MXX_DB.P_Rst/1/.
Btn0Line8=
Btn0Line9=
Btn0Line10=
Btn0Line11=O MWT.MXX_DB.Enable/1/.
Btn0Color=255

[SIGLINK]
IPADDR=
USB_AO0_SignalName=
USB_AO0_SignalDescription=
USB_AO0_SType=
USB_AO0_OutRangeMax=0
USB_AO0_OutRangeMin=0
USB_AO1_SignalName=
USB_AO1_SignalDescription=
USB_AO1_SType=
USB_AO1_OutRangeMax=0
USB_AO1_OutRangeMin=0
USB_AO2_SignalName=
USB_AO2_SignalDescription=
USB_AO2_SType=
USB_AO2_OutRangeMax=0
USB_AO2_OutRangeMin=0
USB_AO3_SignalName=
USB_AO3_SignalDescription=
USB_AO3_SType=
USB_AO3_OutRangeMax=0
USB_AO3_OutRangeMin=0
USB_AO4_SignalName=
USB_AO4_SignalDescription=
USB_AO4_SType=
USB_AO4_OutRangeMax=0
USB_AO4_OutRangeMin=0
USB_AO5_SignalName=
USB_AO5_SignalDescription=
USB_AO5_SType=
USB_AO5_OutRangeMax=0
USB_AO5_OutRangeMin=0
USB_AO6_SignalName=
USB_AO6_SignalDescription=
USB_AO6_SType=
USB_AO6_OutRangeMax=0
USB_AO6_OutRangeMin=0
USB_AO7_SignalName=
USB_AO7_SignalDescription=
USB_AO7_SType=
USB_AO7_OutRangeMax=0
USB_AO7_OutRangeMin=0
USB_DO0_SignalName=
USB_DO0_SignalDescription=
USB_DO1_SignalName=
USB_DO1_SignalDescription=
USB_DO2_SignalName=
USB_DO2_SignalDescription=
USB_DO3_SignalName=
USB_DO3_SignalDescription=
USB_DO4_SignalName=
USB_DO4_SignalDescription=
USB_DO5_SignalName=
USB_DO5_SignalDescription=
USB_DO6_SignalName=
USB_DO6_SignalDescription=
USB_DO7_SignalName=
USB_DO7_SignalDescription=


I need the script to cycle through the following IP:Ports

10.0.1.72:54321
10.0.1.73:54321
10.0.1.74:54321
10.0.1.75:54321
10.0.1.76:54321
10.0.1.78:54321
10.0.1.79:54321

Can someone help me with this adjustment?

What I have tried:

I have tried to loop the commands but it causes errors as I dont what part of the script to remove with regards to the button. I have tried to adjust the code endlessly but keep hitting a brick wall.Please can someone help.
Posted
Updated 16-Jan-17 16:47pm
v2
Comments
Member 12952937 16-Jan-17 18:47pm    
Anyone,? any pointers or help would really be great

1 solution

This is not a script but a configuration file that is loaded by your terminal app. There's nothing to change here.

You'd have to write a script from scratch to do what you're talking about, IF your terminal app supports doing so. I have no idea if it does or how to do it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900