Error codes, Sample api module, Write bytes physical – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 96

Advertising
background image

Chapter 6

PLC-5/VME Processor
Communications Commands

6-27

Error Codes

The STS byte contains 00H if no error. When detected, the PLC-5/VME
processor reports errors in its reply packet as follows:

STS

EXT STS

Description

00H

No error

10H

Incorrect command format

40H

Internal error such as a parity error

F0H

03H

Incorrect address

07H

Segment exceeds the end of user memory

0AH

Transaction size too large for a packet

0BH

Access denied

12H

Invalid packet format

Refer to page D-3 for additional information on PCCC status codes.

Sample API Module

For a sample
interface
header file:

Refer to page:

For a sample
implementation
source file:

Refer to page:

P40VRBP.H

B-69

P40VRBP.C

B-70

Use this command to download PLC-5/VME processor memory after a
successful download-all-requests command. You can download up to 119
words (238 bytes) per packet. Words are loaded low byte first. The first
byte and the number of bytes written must be an even number.

You download PLC-5/VME processor memory using successive write
bytes physical commands for each of three memory segments. The
memory segments are defined by start and end pointers returned by the
upload all requests command. The first command starts at the physical
address defined by a memory segment pointer. You must increment the
physical address of successive commands. You increment the current
physical address over the previous physical address by the same number of
bytes (equal to the SIZE value) each command until the segment is
complete. The packet size of the last command may be less.

See the “Header Bit/Byte Descriptions” section on page 6-4 for a
description of each byte.

Write Bytes Physical

Advertising