beautypg.com

Set cpu mode, Message format – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 89

background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-20

Use this command to set PLC-5/VME processor’s operating mode.

A no-privilege error is returned if the requester does not have the privilege
of placing the host in a download mode. This error occurs when:

the processor is not in Remote mode (must be in Remote Program

mode, Remote Run mode, or Remote Test mode)

the processor is being edited

some other node is already downloading to the processing

Bits 0 and 1 of the flag byte determine the operating mode of the
PLC-5/VME processor. To select the operating mode, set bits 1 and 0 in
flag byte “a.”

Mode

Bit 01

Bit 00

Program Load (program scan idle, I/O scan disabled)

0

0

Remote Test (program scan enabled, I/O scan disabled)

0

1

Remote Run (program scan enabled, I/O scan enabled)

1

0

No change to Operating Mode (only remote bit affected)

1

1

Bit 02 Remote Lock. If set, this will attempt to lock out all other remote
devices from changing the CPU mode.

Bits 03-07 are not used (set to zero).

See the “Header Bit/Byte Descriptions” section on page 6-4 for all byte
descriptions.

Message Format

DST

00

PSN

00

SRC

00

PSN

00

CMD

0F

STS

00

TNS

FNC

3A

Command Packet

Reply Packet

Flag

DST

00

PSN

00

SRC

00

PSN

00

CMD

4FH

STS

TNS

EXT

STS

Flag Byte

LNH

Hi

LNH

Lo

Unused

Lock

Mode

Bit

Select

Byte

7

3

2

1

0

Set CPU Mode