Rockwell Automation 1775-S5_SR5,D17756.5.5 User Manual PLC-3 FAMILY I/0 User Manual

Page 165

Advertising
background image

Binary Command Language

Appendix A

A-37

Set Operating Context Command

Hex: 2B

Parameters: New default context (any context between 1 and 15)

Description: You can change the default communication context by using
the set operating context command. If you send a value greater than 15,
the processor uses the lower 4 bits only. The processor does not accept a
default context of 0. The following example command block changes the
default context values to 2:

STX

02

ISC

03

SIZ

02

CMD

2B

ETX

03

CHK

37

DAT

02

The data byte stores the new default context.

The processor responds to a set operating context command with one of the
following response codes:

Response Codes

Hex

Description

00

Success

03

Unavailable - context = 0

06

Access not allowed

0F

No privilege

The following example response block shows a successful set operating
context command:

STX

02

OSC

11

SIZ

01

RSP

00

ETX

03

CHK

17

Advertising