NIM Primitives 4-57
SIMATIC TIWAY I Series 500 NIM User Manual
Download Device Request and Response
Request: LLLL 59 01 RRRR YYYY WW ZZ DD ... DD
Response: LLLL 59 HH 01 RRRR YYYY
where:
Symbol Value Definition
RRRR Host reference field
YYYY Download sequence count which is initially set to 0. This
field is incremented by one on each subsequent download
request. The response will contain the same value as was
sent in the request.
WW Specifies the form of the data being downloaded:
0 – binary, 1 – text data
ZZ Identifies the segment that is currently being downloaded.
Segment 0 is defined as program memory and segment
one is defined as data memory.
DD Data that restores the attached device’s operating
environment.
Terminate Download Request and Response
Request: LLLL 59 02 RRRR
Response: LLLL 59 HH 02 RRRR
The terminate download command removes the attached device from
download mode. The attached device will return an error code of
LLLL 00 59 002C if it is not in download mode when the terminate
download command is issued.
Abort Download Request and Response
Request: LLLL 59 03 RRRR
Response: LLLL 59 HH 03 RRRR
The abort download request stops the download process when an abnormal
situation occurs. When the command is received, the attached device clears
its memory and leaves the download mode.
The attached device will return an error code of LLLL 00 59 002C if it is not
in download mode when the abort download command is issued.