The text of a manual · part 9 of 11
Bulletin 1203 Remote I/O Communications Module User Manual, pages 72 to 80
Pages 72 to 80 of 96
The original document is the PDF (3.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1203-GD1
Page 72
B–8
Supported Block Transfer Messages
Product ID Number Read
Product ID Number Read returns the product ID of the device to which the Remote I/O module is connected.
PLC Block Transfer Instruction Data PLC request instruction length: 3 words Drive response instruction length: 4 words Figure B.6
Message Structure
PLC Request Drive Response
Message Length 3 PLC Decimal Value 256 0
Product Code (Hex) 0x02 0x03 0x07 0x10 0x11 0x12 0x13 0x14 0x15 0x17 0x18 0x19 0x20 0x22
Header Word 0 Header Word 1
Header Word 0
PLC Decimal Value
Header Word 1
256, Message OK –32512, Message Error
Data Word 2
Product Code (Decimal) 2 3 7 16 17 18 19 20 21 23 24 25 32 34
Message Length 4
Bulletin Number 1336S 1336S 1336F 1336T 2364F 1394 1557 193 150 1305 1397 1336R 1336T 1336E
0
Header Word 2
Product ID Number or Error Code
Data Word 3
Product 1336 PLUS 0.5 – 10 HP 1336 PLUS 7.5 – 800 HP 1336 PLUS II 1336 FORCE w/PLC Adapter Board 2364 RGU DC Bus Regen Front End 1394 Motion Drive 1557 Medium Voltage AC Drive SMP-3 SMC Dialog Plus 1305 AC Drive 1397 DC Drive 1336 Line Regeneration Package 1336 FORCE w/Standard Adapter Board 1336 IMPACT
Message Operation Product ID Number Read, through the drive response message word 3, indicates the type of device the Remote I/O module is connected to. This value is defined in the message response chart shown above. If an error has occurred, word 1 of the response returns a negative value of –32512.
Page 73
Supported Block Transfer Messages
B–9
Example In this example, the Product ID Number Read was requested. The drive response contained a value of 3 in word 3 of its message response, indicating a connection to a 1336 PLUS drive. Data File Format 0
1
2
PLC request
3
256
0
Drive Response
4
256
0
3
4
5
6
7
8
3* * Example only, These values vary depending on parameters and products.
9
Page 74
B–10
Supported Block Transfer Messages
Scattered Parameter Value Read
Scattered Parameter Value Read reads a scattered list of parameters.
PLC Block Transfer Instruction Data PLC request instruction length: 5 – 64 words Drive response instruction length: 5 – 64 words Figure B.7
Message Structure
PLC Request Drive Response
Message Length 5 – 64
Header Word 0
PLC Decimal Value 3
Header Word 1
Number of Parameter Values to Read
Header Word 2
Parameter Number 1
Data Word 3
0
Data Word 4
Parameter Number 2
Data Word 5
0
Data Word 6
Parameter Number 3
Data Word 7
0
Data Word 8
• • •
• • • • • •
• • • Parameter Number 30
Data Word 62
0
Data Word 63
Message Length 5 – 64
Header Word 0
PLC Decimal Value 3, Message OK –32765, Message Error
Header Word 1
Number of Parameter Values to Read
Data Word 2 bit 15
Parameter Number 1
Parameter Value or Error Code 1 bit 15
Parameter Number 2
Parameter Value or Error Code 2
Data Word 3 Data Word 4 Data Word 5 Data Word 6
Parameter Number 3 Parameter Value or Error Code 3
Data Word 7
• • •
• • •
• • •
• • •
Parameter Number 30 Parameter Value or Error Code 30
Data Word 62 bit 15 bit 15
Data Word 8
Data Word 63
Message Operation Scattered Parameter Value Read reads a pre-defined group of parameter values, in any order, from the device. You define the number of parameters to read in word 2 of the request. The parameters to be read and their order is defined starting with word 3. An unused word is left between each parameter request, so the drive can respond with the parameter value, as shown.
Page 75
Supported Block Transfer Messages
B–11
If an error has occurred in reading any of the parameters: • Word 1 of the drive response returns a value of –32765. • Bit 15 of the drive response word for the number of that parameter is set. • The drive response word for the value of that parameter returns a status word instead of returning the parameter value.
Example In this example, eight parameters were read from a 1336 PLUS drive, as defined in word 2 of the request. Parameter numbers 5, 7, 8, 20, 18, 17, 19, and 36 were requested. The drive response returned the values of these parameters in the data file. These values are in drive units. Data File Format
PLC request
Drive response
0
1
2
3
4
5
6
7
8
9
19
3
8*
5*
0
7*
0
8*
0
20*
0
18*
0*
17*
0
19*
0
36*
0
19
3
8*
5*
6*
7*
1000*
8*
1000*
4096*
18*
4096*
17*
51*
19*
60*
36*
6144*
* Example only, These values vary depending on parameters and products.
20*
Page 76
B–12
Supported Block Transfer Messages
Scattered Parameter Value Write
Scattered Parameter Value Write writes to a scattered list of parameters and returns the status of each parameter. If any of the states have errors, the parameter number is negative.
PLC Block Transfer Instruction Data PLC request instruction length: 5 – 64 words Drive response instruction length: 5 – 64 words Figure B.8
Message Structure
PLC Request Drive Response
Message Length 5 – 64
Header Word 0
PLC Decimal Value –32765
Header Word 1
Number of Parameter Values to Write Parameter Number 1 Parameter Value➀ 1
Header Word 2 Data Word 3
Message Length 5 – 64
Header Word 0
PLC Decimal Value 3, Message OK –32765, Message Error
Header Word 1
Number of Parameter Values to Write
Data Word 2 bit 15
Data Word 4
Parameter Number 2
Data Word 5
Parameter Value 2
Data Word 6
Parameter Number 3
Data Word 7
Parameter Value 3
Data Word 8
• • •
• • •
• • •
• • •
Parameter Number 30
Data Word 62
Parameter Value 30
Data Word 63 bit 15 bit 15 bit 15
Parameter Number 1
Data Word 3
0 or Error Code
Data Word 4
Parameter Number 2
Data Word 5
0 or Error Code
Data Word 6
Parameter Number 3
Data Word 7
0 or Error Code
Data Word 8
• • •
• • •
• • •
• • •
Parameter Number 30 0 or Error Code
Data Word 62 Data Word 63
➀ For parameter values greater than 32,767, you may need to enter the value in hexadecimal.
Message Operation Scattered Parameter Value Write writes data values to a pre-defined group of device parameters in any order. You define the number of parameters to write in word 2. The parameters to be written to and their order is defined starting with word 3.
Page 77
Supported Block Transfer Messages
B–13
If an error occurs while writing to any of the parameters: • Word 1 of the drive response returns a value of –32765. • Bit 15 of the drive response word for that parameter’s number is set. • The drive response word for that parameter’s status word is non-zero. If no error has occurred: • Word 1 of the drive response returns a value of 3. • Each of the drive response’s parameter numbers are the same as in the request. • Each of the drive response status words returns a value of 0.
Example In this example, six parameters were written to in a 1336 PLUS drive. Word 2 of the request defines the number of parameter values that are transferred. Beginning with word 3, the message lists each parameter number followed by the value of the parameter. The values are entered in device units. The drive response returns the status of each parameter write. If the request was successful, a zero is returned. If an error has occurred, the response returns a status word code for the error. Data File Format
PLC request
Drive response
0
1
2
3
4
5
6
7
8
9
15
–32765
6*
90*
1*
150*
4*
30*
20*
31*
10*
10*
2*
12*
5*
15
3
6*
90*
0*
150*
0*
30*
0*
31*
0*
10*
0*
12*
0*
* Example only, These values vary depending on parameters and products.
Page 78
B–14
Supported Block Transfer Messages
Continuous Parameter Value Read
Continuous Parameter Value Read reads a continuous list of parameters beginning with the starting parameter number.
PLC Block Transfer Instruction Data PLC request instruction length: 4 words Drive response instruction length: 5 – 64 words Figure B.9
Message Structure
PLC Request Drive Response
Message Length 4
Header Word 0
PLC Decimal Value 1
Header Word 1
Number of Parameter Values to Read Starting Parameter Number
Header Word 2 Data Word 3
Message Length 5 – 64
Header Word 0
PLC Decimal Value 1, Message OK –32767, Message Error
Header Word 1
Number of Parameter Values to Read
Data Word 2
Starting Parameter Number
Data Word 3
Value 1 or Error Code
Data Word 4
Value 2 or Error Code
Data Word 5
Value 3 or Error Code
Data Word 6
• • •
• • •
• • •
• • •
Value 60 or Error Code
Data Word 63
Message Operation This function specified in the request will read a consecutive group of parameter values from the device, beginning with the starting parameter number defined in Word 3 of the request. The number of parameters to be read is defined in Word 2 of the request. The values will return in the response, beginning with Word 4. If an error has occurred in reading any of the parameters, Word 1 of the response will return a value of -32767 and the response word for that parameter will return a status word instead of a parameter value.
Page 79
Supported Block Transfer Messages
B–15
Example In this example, 60 parameters were read from a 1336 PLUS drive, beginning with parameter 10. The values of these parameters are returned in the response. The values are in Drive Units. Data Format 0
1
2
3
4
5
6
7
8
9
PLC request
4
1
60*
10*
Drive response
64
1
60*
10*
0*
0*
0*
0*
0*
100*
0*
50*
4096*
60*
4096*
1*
6*
0*
1000*
0*
0*
0*
0*
0*
1000*
1000*
400*
400*
400*
0*
6144*
2*
4710*
1*
1*
0*
0*
0*
0*
2*
64*
0*
0*
15*
1024*
0*
0*
5811*
0*
18*
0*
0*
0*
3597*
0*
12808*
6*
0*
0*
17952*
0*
0*
0*
0* * Example only, These values vary depending on parameters and products.
Page 80
B–16
Supported Block Transfer Messages
Save/Recall/Initialize
Save/Recall/Initialize - NVS (Non-Volatile Storage) Functions - activates the specified function. These functions are also referred to as EEPROM functions.
PLC Block Transfer Instruction Data PLC request instruction length: 4 words Drive response instruction length: 4 words Figure B.10
Message Structure
PLC Request Drive Response
Message Length 4
Header Word 0
PLC Decimal Value –31998
Header Word 1
0
Header Word 2
NVS Command
Data Word 3
Message Length 4 PLC Decimal Value 770, Message OK –31998, Message Error
Value
NVS Command
00 01 02 03
Not Used NVS Save NVS Recall NVS Default Initialize
0 0 or Error Code
Header Word 0 Header Word 1 Header Word 2 Data Word 3
Message Operation This function allows three different message requests: • NVS Save saves parameter information from the working memory or RAM to NVS Storage. • NVS Recall retrieves the last saved data from NVS Storage and places it in the working memory or RAM. • NVS Default Initialize clears the RAM and NVS Storage and sets all parameter values to default. If an error has occurred, response word 1 returns a value of -31998.
Example This example requests the NVS Storage Save function be performed. Data File Format 0
1
2
3
PLC request
4
–31998
0*
0, 1, 2, or 3
Drive response
4
770
0*
0*
4
5
6
7
8
* Example only, These values vary depending on parameters and products.
9