ProSoft Technology PS69-DPS User Manual Download Page 42

PS69-DPS 

 CompactLogix or MicroLogix Platform 

RSLogix Example Program 

Profibus DP Slave Communication Module  

 

Page 42 of 94  

ProSoft Technology, Inc. 

January 12, 2009 

 

The I/O example program can also be used as an example for the two methods 
of configuration "Configuration by Master" (ForceMasterConfig) and 
"Configuration by Controller Application" (ForceUserConfig). The configuration 
array of the sample project is pre-initialized with following values: 

Configuration 
word 

Data 
type 

Low/High 
Byte 

Description Configured 

values 

Explanation 

LOW Byte 

Busaddress 

This address will be active if the 
rotary switches of the module are 
adjusted to "00" 

0 INT 

HIGH Byte 

Force User 
Configuration 

0 = ForceMasterConfig 
The module will take over the 
configuration from the master. 

1 INT 

 

Reserved 

 

 

2 INT 

 

Watchdog Timeout 

C8h (200dec)  Watchdog 200 ms 

3 INT 

 

Number of valid config 
bytes 
(starting with 
Local:1:C.Data[8]) 

8 Bytes of the module definition 
array are valid 

4 INT 

 

Reserved 

 

 

5 INT 

 

Reserved 

 

 

6 INT 

 

Reserved 

 

 

7 INT 

 

Reserved 

 

 

LOW Byte 

Module 1 Type 

Module 1 Type: 
Input Byte with consistency 

8 INT 

HIGH Byte 

Module 1 Length 

Module 1 Length: 4 (byte) 

LOW Byte 

Module 2 Type 

Module 2 Type: 
Input Word with consistency 

9 INT 

HIGH Byte 

Module 2 Length 

Module 2 Length: 2 (word) 

LOW Byte 

Module 3 Type 

Module 3 Type: 
Output Byte with consistency 

10 INT 

HIGH Byte 

Module 3 Length 

Module 3 Length: 4 (byte) 

LOW Byte 

Module 4 Type 

Module 4 Type: 
Output Word with consistency 

11 INT 

HIGH Byte 

Module 4 Length 

Module 4 Length: 2 (word) 

... 

 

 

... 

 

 

... 

 

 

... 

 

 

LOW Byte 

Module 24 Type 

 

31 INT 

HIGH Byte 

Module 24 Length 

 

The parameter "ForceUserConfiguration" is initialized with 0. If you want to 
activate the pre-defined modules set this parameter to 1. When this parameter is 
active the master configuration has to match exactly with this configuration 
otherwise the slave will not start the communication with the master. 

The parameter busaddress is independent from the parameter 
"ForceUserConfiguration". This parameter will be active, if the rotary address 
switches of the module are set to "00". 

 

Summary of Contents for PS69-DPS

Page 1: ...PS69 DPS CompactLogix or MicroLogix Platform Profibus DP Slave Communication Module 1 12 2009 USER MANUAL...

Page 2: ...oft Technology 1675 Chester Avenue Fourth Floor Bakersfield CA 93301 1 661 716 5100 1 661 716 5101 Fax http www prosoft technology com Copyright ProSoft Technology Inc 2009 All Rights Reserved PS69 DP...

Page 3: ...ple Program to the Processor 13 1 9 Adapter PROFIBUS DP Slave 16 2 Configuration and Start Up 17 2 1 PS69 DPS Sample Add On Instruction Import Procedure 17 2 2 RSLogix 5000 30 2 3 RSLogix 500 33 2 4 S...

Page 4: ...Contents PS69 DPS CompactLogix or MicroLogix Platform Profibus DP Slave Communication Module Page 4 of 94 ProSoft Technology Inc January 12 2009 6 3 LIMITED WARRANTY 87 Index 93...

Page 5: ...gnostic and Troubleshooting Verifying Communication page 46 page 47 Diagnostics and Troubleshooting page 45 This section describes how to verify communications with the network Diagnostic and Troubles...

Page 6: ...PS69 DPS CompactLogix or MicroLogix Platform Start Here Profibus DP Slave Communication Module Page 6 of 94 ProSoft Technology Inc January 12 2009...

Page 7: ...fe or inappropriate working conditions Safety quality and experience are key factors in a successful installation The PS69 DPS module expands the functionality of Rockwell Automation s CompactLogix to...

Page 8: ...rsonal Computer 1769 Programmable Controller 1769 Power Supply 1769 Right or Left handed Termination End Cap Serial Cable for interface to the 1769 Programmable Controller MicroLogix 1500 System Perso...

Page 9: ...and the functionality that they support CompactLogix System Processor Features 1769 L20 1769 L30 1769 L31 1769 L32E 1769 L35E I O yes yes yes yes yes CIP Messaging no no yes yes Yes MicroLogix 1500 Sy...

Page 10: ...the adjacent module is in the unlocked fully right position Warning This module is not hot swappable Always remove power from the rack before inserting or removing this module or damage may result to...

Page 11: ...lave Communication Module ProSoft Technology Inc Page 11 of 94 January 12 2009 3 Push the module s bus lever back slightly to clear the positioning tab and move it firmly to the left until it clicks E...

Page 12: ...atform Start Here Profibus DP Slave Communication Module Page 12 of 94 ProSoft Technology Inc January 12 2009 5 Press the DIN rail mounting area of the controller against the DIN rail The latches will...

Page 13: ...ons port 2 Connect the straight connector end of the cable to the serial port on your computer 1 8 Download the Sample Program to the Processor Important For most applications the sample program will...

Page 14: ...ogram and transfer it to the processor This process may take a few minutes 4 When the download is complete RSLogix will open another confirmation dialog box Click OK to switch the processor from Progr...

Page 15: ...m the Available Driver Types list The recommended driver type to choose for serial communication with the processor is RS 232 DF1 Devices 3 Click to select the driver and then click Configure This act...

Page 16: ...uary 12 2009 Note If the auto configuration procedure fails verify that the cables are connected correctly between the processor and the serial port on your computer and then try again If you are stil...

Page 17: ...ve module must be within 6 modules of the I O bank s power supply Configuration and parameterization of the module is carried out in three steps Configuration of the module in a CompactLogix or MicroL...

Page 18: ...rm Configuration and Start Up Profibus DP Slave Communication Module Page 18 of 94 ProSoft Technology Inc January 12 2009 2 Select Revision 16 2 1 2 Create the Module 1 Right click I O Configuration a...

Page 19: ...ion string Example PS69DPS Description Enter a description for the module Example Profibus DP Slave Communication Module Comm Format Select Data INT Slot Enter the slot number in the rack where the PS...

Page 20: ...n a shortcut menu On the shortcut menu choose New Routine 4 In the New Routine dialog box enter the name and description of your routine and then click OK In this example we are demonstrating the impo...

Page 21: ...ProSoft Technology Inc Page 21 of 94 January 12 2009 6 Select the AOIPS69DPSL5X file 7 The following window will be displayed showing the controller tags to be created during the import procedure If...

Page 22: ...logy Inc January 12 2009 8 If you are using the module in a different slot or remote rack select the correct connection input and output variables associated to the module If your module is located in...

Page 23: ...tration The procedure has also imported new user defined data types data objects and the Add On instruction to be used at your project 2 1 4 Adding Multiple Modules Optional Important If your applicat...

Page 24: ...ameter Value Name Enter a module identification string Example PS69DPS_2 Description Enter a description for the module Example Profibus DP Slave Communication Module Comm Format Select Data INT Slot...

Page 25: ...n a shortcut menu On the shortcut menu choose New Routine 7 In the New Routine dialog box enter the name and description of your routine and then click OK 8 Select an empty rung in the new routine and...

Page 26: ...x Platform Configuration and Start Up Profibus DP Slave Communication Module Page 26 of 94 ProSoft Technology Inc January 12 2009 9 Select the AOIPS69DPS5X file 10 The following window will be display...

Page 27: ...tform Profibus DP Slave Communication Module ProSoft Technology Inc Page 27 of 94 January 12 2009 11 Associate the I O connection variables to the correct module The default values are Local 1 I and L...

Page 28: ...Communication Module Page 28 of 94 ProSoft Technology Inc January 12 2009 12 Change the default tags PS69DPM and AOIPS69DPM to avoid conflict with existing tags This example procedure will append the...

Page 29: ...ge 29 of 94 January 12 2009 Because the second module s logic was created in a new routine enter a rung in the Main routine with a JSR instruction to the new routine to enable the PLC logic to communi...

Page 30: ...te The simplest way to startup the module in RSLogix5000 project is to use the PS69_DPS_L32E ACD example project In this example project the slot number in the configuration dialog of the module may h...

Page 31: ...hen OK 2 2 2 Module Properties 1 The communications parameters for the module should be set as shown in the dialog below Select a name and enter a short description for the module Select the slot numb...

Page 32: ...st be large enough to accommodate the command information required by the module which is 2 Words 4 bytes plus the number of PROFIBUS input data The user can increase the size of this area using the s...

Page 33: ...e Selection Create a new project in RSLogix500 using a MicroLogix1500 controller Then the first step is to select the module and add it to your project In the Controller Organization window expand the...

Page 34: ...onfigured for slave modules PROFIBUS input data The input size can range from 2 to 124 words Vendor Name Product Type Product Code for the PS69 DPS module are 283 12 4 Input Size This value must be la...

Page 35: ...t it is not necessary to enter any configuration data here If you don t enter any configuration data the slave will receive its configuration data from the Profibus master For more information about t...

Page 36: ...This is the easiest way to configure the Slave But be aware that the master can send a new configuration to the slave at any time This can cause inconsistency if the new configuration does not match t...

Page 37: ...dress from 0 to 99 With the rotating switches however you are not able to select bus addresses above 99 If you choose 0 on the address switches then the module will take the address parameter from the...

Page 38: ...ype Module n Length The PS69 DPS PROFIBUS DP Slave offers a flexible modular composition of its I O data This means that parts of the input and output image can be viewed as single modules The master...

Page 39: ...this in the input area of the communication module because the input area of the controller memory map is the output area from point of view of a PROFIBUS master The same applies to an Input module If...

Page 40: ...PS69 DPS CompactLogix or MicroLogix Platform Configuration and Start Up Profibus DP Slave Communication Module Page 40 of 94 ProSoft Technology Inc January 12 2009...

Page 41: ...c MicroLogix I O example 3 1 CompactLogix I O Example This ladder logic program is a basic example for the setup of the PROFIBUS DP Slave communications module PS69 DPS in RSLogix5000 This example can...

Page 42: ...nition array are valid 4 INT Reserved 5 INT Reserved 6 INT Reserved 7 INT Reserved LOW Byte Module 1 Type 4 Module 1 Type Input Byte with consistency 8 INT HIGH Byte Module 1 Length 3 Module 1 Length...

Page 43: ...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 thi...

Page 44: ...te Response message was successful the first Rung will copy the Write data to a local buffer which can be transferred with a CIP response message SR_Copy_Input The SR_Copy_Input routine on every scan...

Page 45: ...ations of the CompactLogix CPU module Indicator Color Status Description Off No task s running controller in Program mode RUN Green One or more tasks are running controller is in the Run mode Off No f...

Page 46: ...ta exchange with DP Master Green Flashing cyclic at 5Hz Slave has no cyclic data exchange with DP Master Green Flashing irregular Power Up Configuration missing or faulty device needs commissioning Ru...

Page 47: ...e PS69 DPS The following table summarizes the typical error sources and gives a hint of possible reasons for the problem Behavior Significance Typical Reason Help CompactLogix I O LED is flashing Gree...

Page 48: ...tion No master present who wants to communicate Check if the slave module is properly connected to the PROFIBUS Network Check if bus activity can be detected in IrqCounter in SlaveStatusField Check if...

Page 49: ...le allowing it to be configured via RSLogix5000 or configuration can be transferred from the Master to the PS69 DPS For third party configuration a GSD file is supplied The slave interface possesses a...

Page 50: ...Hz Radiated Conducted Emission EN 55011 Class A Vibration Shock IEC 600068 2 6 10 150 Hz 0 75 mm 1 g 1 Octave min IEC 600068 2 27 15 g 11 ms Operating Temp 0 to 60 C 32 to 140 F Relative Humidity 5 to...

Page 51: ...Messaging better performance ladder communication X Lower Cost X 5 1 4 PROFIBUS Interface Isolated RS 485 interface per EN 50170 3 RxD TxD P Receive Send Data P respectively connection B plug 5 DGND R...

Page 52: ...es Contained in this appendix are all the user defined data types created and used in the example programs 5 2 1 Input DPS_INPUT_ARRAY Name Data Type Description DevStaReg DPS_DEV_STATUS_REGISTER Devi...

Page 53: ...lave Input Data Length OutputDataLen INT Slave Output Data Length ErrorCount INT Slave Error Count LastError SINT Slave Last Error Pad SINT Reserved WatchdogTime INT Slave Watchdog Time IrqCounter INT...

Page 54: ...Request Flag DpsDiagReqInProgress BOOL DPS Diagnostic Request in Progress Reserved0 BOOL Reserved Reserved1 BOOL Reserved Reserved2 BOOL Reserved Reserved3 BOOL Reserved Reserved4 BOOL Reserved Reserv...

Page 55: ...INT Extended Diagnostics Data Count Mode SINT Mode Function SINT Function 5 2 11 DPS_DIAGNOSTIC_REQUEST Name Data Type Description Reserved1 INT Reserved Reserved2 INT Reserved Reserved3 INT Reserved...

Page 56: ...rved5 SINT Reserved Reserved6 SINT Reserved SlotNumber INT DPV1 Alarm Slot Number SequenceNumber SINT DPV1 Alarm Sequence Number DataCnt SINT DPV1 Alarm Data Count AlarmType SINT DPV1 Alarm Type Speci...

Page 57: ...requested data ErrCode1 SINT Reply of Error code 1 according to DPV1 ErrCode2 SINT Reply of Error code 2 according to DPV1 RWRespData SINT 240 DPV1 Write data 5 2 16 DPS_DPV1C1_RW_RESP_REQUEST Name Da...

Page 58: ...ot support the Fail Safe state set their outputs to 0 Global Control With the Global Control telegram the master can send unsolicited commands like Sync Unsync Freeze Unfreeze and Clear Data to a slav...

Page 59: ...in the data range of a slave device This may take several DPV0 cycles If the master discovers a timeout it aborts both DPV1 and DPV0 communication with the slave Then the communication to the slave ha...

Page 60: ...ts 1 Reserved Reserved 2 Reserved Reserved 3 Reserved Reserved 4 Firmware Revision Minor Version 5 Firmware Revision Major Version 6 7 Reserved Reserved 8 9 Slave Status Information ExtStaSelect 10 11...

Page 61: ...Structure Member Data Type Description 0 MSB SINT Module Status Bits 1 Reserved SINT Reserved 2 Reserved SINT Reserved 3 Reserved SINT Reserved MSB Module Status Bits Bit Offset Structure Member Data...

Page 62: ...rmation about the slave modules status and begins with byte 8 of the input region The status information encompasses 32 bytes of static information and 96 bytes reserved for the extended status field...

Page 63: ...re related to the definition of inputs and outputs from point of view of PROFIBUS There is a clear definition of inputs and outputs by PROFIBUS They are always defined from point of view of a PROFIBUS...

Page 64: ...s registers as an indication that the network Master has sent an unsolicited DPV1 Read Write request The first will contain two bits which indicate if a read or write needs to be processed If this reg...

Page 65: ...election the extended information is invalid The number of bytes within the extended status area which are valid depends on the selected status The number of valid bytes will be shown in the status ar...

Page 66: ...firmations to User AlaReqUsr DINT Alarm Request from User AlaMsgSen DINT Alarm Messages Sent PosAlaCnf DINT Positive Alarm Confirmations to User NegAlaCnf DINT Negative Alarm Confirmations to User Req...

Page 67: ...OL Application not ready 6 INIT BOOL Init 7 RST BOOL Reset NRDY Not Ready With this bit the user program can start or stop communication with the PROFIBUS system When this bit is set from the user pro...

Page 68: ...US DP services are supported by the RSLogix5000 programming tool by means of CIP messages using the MSG instruction The outline and usage of these commands for the PROFIBUS DP Slave are explained with...

Page 69: ...utput tab and click on the MSG button The instruction will be inserted into your ladder logic as shown in the figure below Select the And enter the MESSAGE type created Dpv1AlarmMsg as shown below Ste...

Page 70: ...nuary 12 2009 Note The user must create two user defined data types to send and receive the information for this command message In this example Dpv1AlarmReq and Dpv1AlarmCnf were created to hold the...

Page 71: ...dex indicated within the DPV1 Status Registers DPV1 Class 1 Write Response 17 DPV1 With this service the Slave module can respond to a DPV1 Write Request from the PROFIBUS Master This service works by...

Page 72: ...are not well formatted the module will reject the diagnostic request DPS_ DIAGNOSTIC_CONFIRM Parameter Data Type Value Description Reserved1 INT 0 Reserved Reserved2 INT 0 Reserved Answer SINT 24 Answ...

Page 73: ...Response Request MaAdr SINT 0 125 Bus Address of Master which sent the request This value is obtained from the DPV1 Status Register Slot INT 0 254 Slot Number This value is obtained from the DPV1 Stat...

Page 74: ...pe DPS_DPV1C1_RW_RESP_CONFIRM Source Length 16 n Corresponds to the constant size of the DPS_DPV1C1_RW _REQUEST structure plus number of requested data DPV1 Class 1 Write Response The DPV1 Class 1 Wri...

Page 75: ...uest Index SINT 0 254 Index Reply from resp request DataLen SINT 1 240 x Length of the data block to be written ErrCode1 SINT E1 DPV1 Error code 1 Reply from resp request ErrCode2 SINT E2 DPV1 Error c...

Page 76: ...ter Data Type Value Meaning Reserved1 INT 0 Reserved Reserved2 INT 0 Reserved Answer SINT 18 Answer DPS_B_ACYC_C1_ALARM Failure SINT e Error status see following section Reserved3 INT 0 Reserved Reser...

Page 77: ...lid Slot 3 Type Conflict 4 Invalid Area 5 State Conflict 6 Access Denied 7 Invalid Range 8 Invalid Parameter 9 Invalid Type 10 to 15 User Specific 12 Resource 0 Read Constrain Conflict 1 Write Constra...

Page 78: ...number of parallel CIP messages send to the module The module can process 5 CIP messages in parallel Note that RSLinx can already consume 2 of this CIP com buffers if the online browser is active 02...

Page 79: ...TOO_LONG Status data exceeds the length of the diagnostic buffer 116 DPS_ERR_NO_FREE_DIAG_BUFFER No diagnostic buffer available at the moment This Error will be temporary 129 DPS_ERR_DIAG_DATA_ILLEG_L...

Page 80: ...User specific alarm data of illegal length 125 DPS_ERR_ALRM_ILLEG_SEQU Sequence number out of range or already in use 152 TASK_F_MESSAGECOMMAND Unknown command in Command Field 165 TASK_F_DATA_CNT Mi...

Page 81: ...VC Jacket S Braided shielding 3 Remove the PVC jacket J to the indicated length 4 Wrap the provided copper shielding F around the shield braiding S J PVC jacket S Braided shielding F Copper foil shiel...

Page 82: ...D Cable cleat for reliving tension E Bus connector screws 6 Attach the cables with the provided cable cleat to create a robust shielded connection and to relieve any tension as shown J PVC Jacket S Br...

Page 83: ...nning and the end of the bus These connectors emulate the line impedance It is recommended that at least one connector with diagnostics interface is used Wiring diagram for a PROFIBUS DP cable Groundi...

Page 84: ...tential bonding Grounding and Shielding for Systems without Equipotential Bonding Note Grounding and shielding is to be carried out the same as for systems with equipotential bonding If this is not po...

Page 85: ...e processor and user data files as viewed through and LED patterns on the processor 3 Details about the serial devices interfaced if any 6 1 How to Contact Us Technical Support Internet Web Site http...

Page 86: ...d Products must be shipped freight prepaid in the original shipping container or equivalent to the location specified by ProSoft and be accompanied by proof of purchase and receipt date The RMA number...

Page 87: ...shipment as detailed in Limited Warranty page 87 The Warranty Period may be extended at the time of equipment purchase for an additional charge as follows Additional 1 year 10 of list price Additiona...

Page 88: ...anteed in the terms specified above for new Product provided said warranty will be for the period remaining on the original new equipment warranty or if the original warranty is no longer in effect fo...

Page 89: ...oyees from and against all liabilities losses claims costs and expenses including attorney s fees and expenses related to any claim investigation litigation or proceeding whether or not ProSoft is a p...

Page 90: ...oftware and or other intellectual property 6 3 5 Disclaimer of all Other Warranties The Warranty set forth in What Is Covered By This Warranty page 88 are in lieu of all other warranties express or im...

Page 91: ...to the Customer 6 3 9 Allocation of Risks This Warranty allocates the risk of product failure between ProSoft and the Customer This allocation is recognized by both parties and is reflected in the pr...

Page 92: ...PS69 DPS CompactLogix or MicroLogix Platform Support Service Warranty Profibus DP Slave Communication Module Page 92 of 94 ProSoft Technology Inc January 12 2009...

Page 93: ..._DPV1C1_ALARM_REQUEST 56 DPS_DPV1C1_RW_INDICATION 56 DPS_DPV1C1_RW_RESP_CONFIRM 57 DPS_DPV1C1_RW_RESP_REQUEST 57 DPV0 Services 58 DPV1 Class 1 Alarm Request 75 80 DPV1 Class 1 Read and Write 80 DPV1 C...

Page 94: ...ity 9 ProSoft Product Documentation 2 PS69 LEDs 46 PS69 DPS Sample Add On Instruction Import Procedure 17 Purchasing Warranty Extension 87 R Read Request 59 Reference 5 49 Reference Systems 8 Return M...

Reviews: