Command
ASCII (Telnet)
(Host to Switcher)
URL Encoded (web)
(Host to Switcher)
Response
(Switcher to Host)
File Commands (continued)
List files from current directory
and below
E
LF
}
W LF
|
(See below.)
Telnet text responses:
path/directory/filename x
•
date/time
•
length
]
path/directory/filename x
•
date/time
•
length
]
path/directory/filename x
•
date/time
•
length
]
...
space_remaining
•
Bytes Left
]
web responses — HTML sample code:
Var le – new Array ();
File [1] = ‘filename1, date1, filesize1’;
File [2] = ‘filename2, date2, filesize2’;
...
File [n] = ‘filename n, date n, filesize n’;
File [n+1] = ‘space remaining, Bytes left’
NOTE: The response to this command is the same as for the “List files from current directory” command (DF), except that
path/directory precedes filenames for files from subdirectories below the current directory.
Stream Files via Port 80
Load file to user flash memory
24,28
Use a POST on port 80 followed by the delimited data to be written to the flash
file memory.
Retrieve files from user flash
memory
24 28
Send a page GET on port 80 followed by WSF
|
Raw unprocessed data
in file
Example:
http://192.168.254.254/mypage.html?cmd=WSF
Stream Files via Telnet
Load file to user flash memory
24,28
E
+ UF filesize, filename
}
Raw unprocessed data in file up to file size
Upl
]
Retrieve file from user flash
memory
24 28
E
filename SF
}
1B filename SF0D Four bytes of file size
+ raw unprocessed
data in file
Event Control
Read event buffer memory
27
E X3%,X3^,X3& X3* E} W X3% %2C X3^ %2C X3& X3* E}
X5$
]
Write event buffer memor
y24,27
E X3%,X3^,X3&,X3(
X3*
E}
W X3% %2C X3^ %2C X3& %2C
X3(
X3* E}
Evt
X3%
,
X3^
,
X3&
,
X3(
]
NOTE: The response to the Write Event command is padded with leading zeros for
X3%
and
X3&
.
X3%
is 5 digits and
X3&
is 10 digits.
Read string from event buffer
memory
27
E X3%,X3^,X3&,X4$ FE} W X3% %2C X3^ %2C X3& %2C
X4$
FE}
string
]
IPL T PC1 • SIS Programming and Control 60