ProSoft Technology PS69-DPM User Manual
Page 84
Contents
PS69-DPM ♦ CompactLogix or MicroLogix Platform
User Manual
PROFIBUS DPV1 Master
Page 84 of 130
ProSoft Technology, Inc.
October 1, 2014
MSAC1_Write
The MSAC1_Write request is used by the master to perform a DPV1 write to a slave device.
The MSG instruction Request /Confirmation format is as follows.
MSAC1_WRITE_REQUEST
Parameter
Data Type
Value
Description
Reserved1
INT
0
Reserved
Reserved2
INT
0
Reserved
Reserved3
SINT
0
Reserved
Command
SINT
17
Command for Service MSAC1_Write
Reserved4
INT
0
Reserved
DeviceAdr
SINT
0.. 125
Address of the PROFIBUS Slave
DataArea
SINT
0
Reserved
DataAdr
INT
0.. 254
Slot Number
DataIdx
SINT
0.. 254
Index
Cnt
SINT
x =1.. 240
Length of the Data block to be written
DataType
SINT
0
Reserved
Function
SINT
2
MSAC1_Write
Data[0 .. x-1]
SINT
Data to be written
MSAC1_WRITE_CONFIRM
Parameter
Data Type
Value
Meaning
Reserved1
INT
0
Reserved
Reserved2
INT
0
Reserved
Answer
SINT
17
Answer MSAC1_Write
Failure
SINT
E
Error, status (see following section)
Reserved3
INT
0
Reserved
DeviceAdr
SINT
0.. 125
Slave address
DataArea
SINT
0
Reserved
DataAdr
INT
0.. 254
Slot Number
DataIdx
SINT
0.. 254
Index
DataCnt
SINT
1.. 240
Length of the data block that was written
Function
SINT
2
MSAC1_Write
If ‚Failure' == CON_AD
ErrorCode1
SINT
Error_Code_1
ErrorCode1
SINT
Error_Code_2