I am trying to do an IDCS via a script. I would like to pull the information from LD 97 and use that information to query the controllers. The following script would return a list of controllers
1st part of script
S0 S1 S2 S3 LOC DIS RGTP
01 008 008 008 008 NO 08
02 020 020 020 020 NO 08
03 004 004 004 004 NO 08
04 004 004 004 004 NO 08
05 008 008 008 008 NO 08
06 020 020 020 020 NO 08
07 028 028 028 028 NO 08
08 036 036 036 036 NO 08
I would like to store 8 (last controller) to the variable xpecmax. Then
ENDPROC
Anybody have any Idea if this can be done and how?
1st part of script
Code:
PROC MAIN
integer [b]idcscnt[/b]=1
integer [b]xpecmax[/b]=0
transmit "****^M"
transmit "LD 97"
waitfor "REQ"
transmit "PRT^M"
waitfor "TYPE"
transmit "XPE^M"
waitfor "XPEC"
transmit "^M"
S0 S1 S2 S3 LOC DIS RGTP
01 008 008 008 008 NO 08
02 020 020 020 020 NO 08
03 004 004 004 004 NO 08
04 004 004 004 004 NO 08
05 008 008 008 008 NO 08
06 020 020 020 020 NO 08
07 028 028 028 028 NO 08
08 036 036 036 036 NO 08
I would like to store 8 (last controller) to the variable xpecmax. Then
Code:
while idcscnt <= xpecmax
transmit "IDCS "
transmit idcscnt ^M
WAITFOR "."
idcscnt++
ENDWHILE
ENDPROC
Anybody have any Idea if this can be done and how?