beautypg.com

Chapter 3 – Rockwell Automation 1771-SPI,D17716.5.122 SPI PROTOCOL INTERFACE User Manual

Page 25

background image

Defining Command and Status Blocks

Chapter 3

3-3

Table 3.B

Word/Bit Definitions of the Module Configuration Command Block (MCC)

Word

Number

Bit

Number

Title

Range / Description

0-7

Block ID

11111111 MCC block ID

8

Data Format

DF

0 = decimal data (required for PLCĆ5)

Note: Determines the format of device ID

1 = do not use (for other processors)

and addresses for ALL data blocks

9-10

Numeric Format

NF

00 = floating point

Note: Determines numeric format for ALL

01 = decimal data (preferred)

data blocks

1

11

Cmd not Supported

CNS

0 = SPI module reports Command not Supported errors from all devices

1 = SPI module does NOT report these errors

1

12-14

Baud Select

Bits 14 13 12 Baud

0 0 0

1200

Note: Determines the SPI module's

0 0 1

2400

communication rate with ALL devices

0 1 0

4800

on the SPI network

0 1 1

9600

1 0 0 19200

15

Cmd not Executed

CNE

0 = SPI module reports Command not Executed errors from all device.

1 = SPI module does NOT report these errors

0-3

Number of

MCC pages

0 = one page

Note: If the MCC requires more than one page, download pages in

9 = 10 pages

numeric order. Last page must match page number (bits 4Ć7).

2

4-7

Page Number

0 = page 1

Note: If the MCC requires more than one page, your ladder logic

9 = page 10

must toggle these bits to identify each successive page number.

8-15

Not used

zero

3 and 4

Not used

zero

Each pair of words below defines a device on the SPI network.

The SPI module will poll them in listed order. You may repeat a device for more frequent polling.

0-7

Device Type

The 8Ćbit code defines the device type. See

Table 3.N

8-12

Reserved

5

13

Protected Mode

PM

0 = not used

Note: Tells the SPI module to use the protected

1 = Use machine protected mode machine mode word: Poll 20 4A and Select 20 4B

14

Configuration

Select

CS

0 = not used

Important: Tells the SPI module that:

1 = Use custom configuration

* this device will be configured by a custom CCB.

* data will be sent to it by CDB.

15

Device Select

DS

0 = normal BTR of status

Note: Disable removes the device from the SPI netĆ

1 = disable BTR reporting

work queue. Lets you read other devices selectively

6

0-7

Device Address

32-255 (decimal data)

Note: Use the address that you selected

with switches on the device.

6

8-15

Zone Address

48-255 (decimal data)

Note: If the device has multiple temperature zones,

use assigned zone addresses. If not, zero the digits.

Use word pairs 7 & 8, 9 & 10, 11 & 12, up to 63 & 64 as needed for multiple devices on the SPI network.