Prosoft-technology PS69-DPS User Manual Page 52

  • Download
  • Add to my manuals
  • Print
  • Page
    / 108
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 51
RSLogix Example Program PS69-DPS CompactLogix or MicroLogix Platform
User Manual Profibus DP Slave Communication Module
Page 52 of 108 ProSoft Technology, Inc.
May 9, 2014
3.2 CompactLogix Messaging Example
This ladder logic program is a CIP messaging example for the setup of the
PROFIBUS-DP Slave communications module "PS69-DPS" in RSLogix5000.
This example can be used to start a project when using a CPU 1769-L32, which
supports CIP messaging. Basic PROFIBUS I/O data exchange and all
messaging function examples are shown. Details on the Subroutines created and
the User Defined Data Types are as follows.
MainRoutine: The MainRoutine calls all of the following routines based on
conditions such as doing a diagnostic request or to check the progress of
each individual DPV1 function issued by the Master. This routine also
contains a simple I/O transfer function block.
Diagnostic_Req: This subroutine Diagnostic_Req assembles a Diagnostic
Request message which will be sent to the Master. A CIP Generic Message
is used to send this message.
Diagnostic_Req_Progress: This subroutine Diagnostic_Req_Progress
checks the status of the diagnostics request message sent to the Master.
When the Diagnostic request is done it will increment a status counter to
check how many requests have been send successfully and how many failed.
DPV1C1_Alarm_Req: This subroutine DPV1C1_Alarm_Req assembles a
DPV1 Alarm message which will be sent to the Master. A CIP Generic
Messages is used to send this message.
DPV1C1_Alarm_Req_Progress: This subroutine
DPV1C1_Alarm_Req_Progress checks the status of the Alarm request
message sent to the Master. When the Alarm request is done it will increment
a status counter to record how many requests have been send successfully
and how many have been failed.
DPV1C1_Progress: This subroutine DPV1C1_Progress checks the
inprogress bit of each service and sends the appropriate response. CIP
Generic Messages are used to send the response message from the Slave to
the Master.
DPV1C1_Read_Resp: This subroutine DPV1C1_Read_Resp assembles the
DPV1 Read response message. A CIP Generic Message is used to send this
message. This routine will return immediately if there is still a DPV1 Read
Response in progress.
DPV1C1_Read_Resp_Progress: This subroutine
DPV1C1_Read_Resp_Progress checks the status of the DPV1 Read
Response sent to the Master. When the Read response request is done it will
increment a status counter to record how many response requests have been
sent successfully and how many failed.
DPV1C1_Write_Resp: This subroutine "DPV1C1_Write_Resp" assembles
the DPV1 Write response message. A CIP Generic Message is used to send
this message. This routine will return immediately if there is still a DPV1 Write
Response in progress.
Page view 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 107 108

Comments to this Manuals

No comments