beautypg.com

ProSoft Technology PS69-DPM User Manual

Page 93

background image

PS69-DPM ♦ CompactLogix or MicroLogix Platform

Contents

PROFIBUS DPV1 Master

User Manual

ProSoft Technology, Inc.

Page 93 of 130

October 1, 2014

Init_ReadReqMsg: This routine is used to form the DPV1 read request CIP message.

The routine is triggered by using the DoDPV1ReadReq tag. Once triggered a
MSAC1_Read_req command is sent to the Slave requesting a block of data. The return
data from this command shall appear as MSAC1_READ_CONFIRM user defined tag.
The user should make changes to this routine as needed for his application.

Init_SetParameterMsg: The Init_SetParameterMsg routine shows a simple example of

using CIP messaging to send user parameter data to a Slave. To trigger this routine the
DoDDLMSetPrm tag is used. Changes in this routine should be made to fit the users
particular Slave. See the Slaves user manual for the user settable values.

Init_SlaveDiagMsg: This routine shows an example of sending a Slave diagnostics

request using CIP messaging. The routine is called automatically by the logic found in
the MainRoutine or can be executed manually by toggling the DoDDLMSlaveDiag bit.
The response data from this message is contained in
DDLM_SLAVE_DIAGNOSTIC_CONFRIM user defined data type.

Init_WriteReqMsg: This routine is used to form the DPV1 write request CIP message.

The routine is triggered by using the DoDPV1WriteReq tag. Once triggered a
MSAC1_Write_req command is sent to the Slave containing a block of data. The return
data from this command shall appear as MSAC1_WRITE_CONFIRM user defined tag.
The user should make changes to this routine as needed for his application.

SR_Copy_Input: The SR_Copy_Input routine on every scan updates the

DpmInputArray structure with the Input Data of the module.

SR_Copy_Output: The SR_Copy_Output routine on every scan updates the

DpmOutputArray structure with the Output Data of the module.

SR_Main_Init: Initializes several variables used by different routines.
Numerous user defined data types have been created to make it easier to address different
elements of the Input and Output array of the module. The two main structures are
DpmInputArray and DpmOutputArray. Their definitions and the structures included in each
are shown in RSLogix 5000 User Defined Data Types (page 110).