7 enable/disable macro execution, Host command set reference – Siemens SIMATIC TIWAY 1 User Manual
Page 118
HOST COMMAND SET REFERENCE
UNILINK HOST ADAPTER
5–33
USER MANUAL
5.4.7
Enable/Disable Macro Execution — 16
The ENABLE/DISABLE MACRO EXECUTION command processes a list of
macro buffer numbers to either enable or disable the specific macros for
execution. The exception flag is cleared for each valid macro buffer number
regardless of whether the macro is being enabled or disabled. If the macro is
successfully enabled, the MRSW is reset or if the macro is successfully disabled,
the MRSW is set to the disabled Termination Code.
NOTE
The send Primitive and disconnect macro types can
only be enabled when their associated secondary
device is not in the secondary log.
Command:
16 ss [bb tt]
Response:
16 ss [bb rr]
Usage:
OPERATION
Modes:
MHIU, HIU
Parameters:
ss
The Source Id number.
bb
The macro buffer number. The response returns the buffer
numbers in the same order as specified in the command.
tt
01 hex to enable the macro or 00 hex to disable it.
rr
The response code for that macro buffer. The possible values are:
00 = the macro was successfully enabled or disabled as requested.
01 = the macro buffer number requested has not been allocated.
Use the ALLOCATE MACRO STORAGE BUFFERS command to
allocate the buffer, then reissue this request.
02 = the macro buffer number specified has a different Source Id
than the one specified. Check your macro definitions table and
reissue with the correct Source Id.
03 = the macro buffer specified is the action macro in a link macro
pair which cannot be explicitly enabled or disabled.
04 = the ‘tt’ parameter specified was a value other than 00 hex or
01 hex.