User`s manual

B-14 Motion Mate DSM314 for Series 90-30 PLCs User's Manual
January 2001 GFK-1742A
B
Section 4: The Parameter Load COMM REQ
The Command Block
The Command Block contains the details of a Communications Request. The first address of the
Command Block is specified by the IN input of the COMM REQ Ladder Instruction. This
address can be in any word-oriented area of memory (%R, %AI, or %AQ). The Command Block
structure can be placed in the designated memory area using an appropriate programming
instruction (the BLOCK MOVE instruction is recommended). The DSM Command Block has the
following structure:
Table B-7. DSM Parameter Load COMM REQ Command Block
Parameter Load COMM REQ Command Block for DSM Module
Description Address + Offset Word No. and Value
Data Block Header Length Address + 0 Word 1, always set to 4
WAIT/NOWAIT Flag Address + 1 Word 2, always set to 0
Status Pointer Memory Type (see
Memory Type Codes table, below)
Address + 2 Word 3, chosen by user (see
Memory Type Codes table)
Status Pointer Offset Address + 3 Word 4, chosen by user
Idle Timeout Value Address + 4 Word 5, always set to 0
Maximum Communication Time Address + 5 Word 6, always set to 0
Command Code Address + 6 Word 7, always E501(hex.)
Parameter Data Block Size, in bytes
(must include 4 bytes for Parameter
Specifier Words)*
Address + 7 Word 8 (Size depends on the
value in Word 12)
Parameter Data Memory Type (for
Word 11)
Address + 8 Word 9, chosen by user (see
Memory Type Codes table)
Parameter Data Offset (for Word 11) Address + 9 Word 10, chosen by user
Starting parameter number (0 - 255) Address xyz
(Address specified in
Words 9 and 10)
Word 11, chosen by user
Number of parameters to load Address xyz + 1 Word 12, chosen by user
1st parameter data Address xyz+ 2/3 Word 13 and Word 14
2nd parameter data Address xyz + 4/5 Word 15 and Word 16**
... Address xyz + ...**
16th parameter data (4 bytes) Address xyz + 32/33 Word 43 and Word 44**
*
Parameter Data Block size must equal 4 bytes for the Parameter Specifier Words plus 4 bytes for each
Parameter
** Use of these words depends on the value in Word 12
Parameter
Specifier
Words
Parameter
Data
Block
Parameter
Data
Specify
Status
Word
Address
S
pecify
W
ord 11
A
ddress
Data
Block
Header