NIM Primitives
4-56 SIMATIC TIWAY I Series 500 NIM User Manual
Series 500 NIM Primitive Descriptions (continued)
Like the program upload primitive, there are four forms of the download
request.
•Initialize download — places the attached device into download mode
and clears any device memory areas that can accept download data
•Download device — sequentially transfers the archived (uploaded)
program to the attached device
•Terminate download — stops the download process and removes the
attached device from the download state
•Abort download — immediately terminates the download mode
Initiate Download Request and Response
Request: LLLL 59 00 RRRR MMMM OOOO
Response: LLLL 59 HH 00 RRRR MMMM OOOO
where:
Symbol Value Definition
RRRR Host reference field
MMMM Bit mask that defines which segments are going to be
downloaded. There are four hexadecimal values allowed
in the field (01, 02, 03, and 3FFF). If you use 3FFF, the
attached device will report which segments are supported
in the response. For example, if you send an initiate
download request to a Series 500 NIM that is
communicating with a 560/565 controller, the NIM
response will contain a bit mask value of 3, which shows
support for the program and data segments.
OOOO Time-out field that specifies the amount of time (in
seconds) the attached device will wait between
subsequent download requests before it terminates the
upload requests and exits the upload mode. If a value of 0
is specified in the time-out field, the attached device will
return the default value (2 minutes).
The initiate download request places the attached device in the download
mode and clears the device’s memory areas. The initiate download request
can only be accepted (by the NIM) if the attached device is in a neutral
state, i.e. not uploading or downloading. If the NIM is not in a neutral state,
send primitive 06 to reset the attached device.