
Creating Command and Status Blocks
Chapter 4
4-4
You must create one CCB for each device type on the link to define:
data layout of the CCB
number of bit-command words and their command codes
number of numeric preset words and their command codes
number of ASCII string words and their command codes
same information for status (independent of data sent)
Important: To obtain command-code pairs CMD1 and CMD2 for specifying
commands and setpoints to be sent to the device and status returned from it,
refer to the SPI Communication Protocol manual or the device manufacturer.
Specify them according to your application requirements. In this example,
command words 5-8 define data to be sent to the device via the SPI module.
Status words 9-12 define data to be returned via the SPI module.
Example CCB Worksheet
Word Write your entries in this column. (example entries in italics) Notes
1 device ID: name Dryer code 22 Enter the devicetype ID.
2 # numeric preset words = 3 # bitcommand words = 1
Numbers that you enter in words
3 # bit status words = 2 # ASCII strings = 0
24 must match corresponding
number of entries in words 5 to end
4 # ASCII status words = 1 # numeric status words = 1
num
er o
en
r
es
n wor
s
o en
of file.
Word Write your entries in this column. CMD1 CMD2 Notes
5 bit command 1 Machine mode:
turn machine on/off
20 49 Enter names of bit commands and
their specified command codes
CMD1 and CMD2. [1]
6 numeric preset 1 Temperature Setpoint 20 31
Enter names of numeric presets
7 numeric preset 2 Alarm, Hitemperature Deviation 20 33
and their specified command codes
CMD1 and CMD2.
1
8 numeric preset 3 Alarm, Lotemperature Deviation 20 35
an
.
ASCII string 1 not used in this example Enter ASCII strings and command
codes CMD1 and CMD2. [1]
Word Write your entries in this column. CMD2 CMD1 Notes
9 bit status word 1 Process Status 20 40
Enter specified status codes CMD1
10 bit status word 2 Machine Status 20 42
and CMD2 for bitstatus words. [1]
11 numeric status wrd 1 Process Temperature 20 72 Enter status codes CMD1 and
CMD2 for numericstatus words. [1]
12 ASCII status word 1 Device Revision Level 20 22 Enter specified status codes CMD1
and CMD2 for ASCII status [1]
[1]
Leave no blank words between groups of entries. If not using a group, put the next group in its space.
Important: Status data (words 9-12 in this example) are returned to the
processor from the target device by the SPI module in Custom Data Status
(CDS), NOT in the Custom Configuration Status (CCS). They are
returned only as a result of the SPI module’s polling of devices on the link.
Custom Configuration Block
CCB, to Configure the SPI
Module for a Device
Komentarze do niniejszej Instrukcji