Emerson 400501-08 manual Explanation of PLC Program, Examples, Example 1 Read Index 0 Velocity

Page 68

Epsilon Ei DeviceNet Drive Reference Manual

Explanation of PLC Program

The copy command in Rung 0 will activate when B3:0/0 is turned on. This command will send out a request to the DeviceNet master by copying the N10 integer file into the M0: file.

After this request gets sent out, the PLC indicates when it has all data returned by setting bit I:3/15 high. Once this occurs bit B3:0/1 can be set high to view the results via a copy command from the scanner card M1: to integer file N11:.

Once the data is received, the response buffer must be cleared before the next explicit message can be sent. This is accomplished by setting bit B3:0/2 high. When this is implemented, the I:3/15 bit will be cleared by the scanner card and the explicit messaging system is free to use again.

Note

After each send a clear response buffer message must be sent in order to continue communication.

Examples

Example 1 Read Index 0 Velocity

This example will show how to use explicit messaging to capture the current index velocity in an Ei-DN drive.

Create a PowerTools Pro configuration file ensuring that both the MacID (04) and the network BaudRate (125 KB) are configured. For this example, set the Index 0 Velocity is to 1000 units. Download this to the drive.

Index 0 Velocity is mapped to class 0x68, instance 0x01, attribute 0x09, as shown in the table below.

The following parameters will be used to set up this explicit message.

Figure 22: Integer Data File N10

56

Image 68
Contents Reference Manual Page Epsilon Ei DeviceNet Drive Reference Manual Page Customer Support 952Website and Email Technical Support 952 995-8033 or 800Training Services 952 995-8000 or 800 Customer Service Sales 952 995-8000 or 800Document Conventions Application Engineering 952 995-8000 or 800This Represents Safety Instructions Reference MaterialsGeneral Warning Qualified PersonSafety Considerations Safety PrecautionsSetup, Commissioning and Maintenance EnclosureSafety of Machinery General warningTable of Contents Network Configuration Quick Start Explicit Messaging Quick StartDrive Parameters Appendix Glossary IndexIntroduction PurposeDeviceNet Overview DeviceNet Communications LinkDeviceNet Messaging and Communications Master/Slave RelationshipMaster/Slave Relationship Installation Mechanical InstallationDeviceNet Hardware Components CablesElectrical Installation ConnectorsPower Supply Requirements Physical Connections to the DeviceNet NetworkInstallation Epsilon Ei DeviceNet Drive Reference Manual Connection Types Software InterfaceDeviceNet Tab Polled I/O Connections Implicit MessagingMaster Receive and Master Send Assembly Block Selections MacIDBaud Rate Index Select Predefined Index Sel PredefConfiguring the DeviceNet Network Index Select User Defined Index Sel UserDefIndex Type Position ControlNo Operation CCWInput Word Select Data Pointer Code DescriptionOutput Word Select Data Pointer Command Assembly Code Response Assembly CodesConfiguring the DeviceNet Network Host Mode Enable Ei-DN Input Processing LogicCounters DeviceNet Online TabInformation Status Established ConnectionsNetwork Status LED Module Status LEDInput and Output Tab DeviceNet BitsFaults and Diagnostic Display Ei-DN Modbus Address DN Allocation Choice Connections EstablishedDN Allocation Master MacID DN Bus Off Fault Count DN Baud RateDN Bus Off Counter DN Bus Off InterruptDN Comm Time-out Fault Count DN Duplicate MacID Fault CountDN Device Type DN FAB Master Receive BlockDN MacID DN Host ModeDN FAB Master Send Block DN Master Send Bitmap DN Master Receive BitmapDN Master Receive FAB Type DN Master Send FAB Type DN Module StatusDN Status Major Recoverable Fault DN Status Major Unrecoverable FaultDN Network Status DN Receive CounterDN Status Minor Recoverable Fault DN Status Minor Unrecoverable FaultDN Transmit Counter DN Vendor IDModule Status LED Accessing the EDS FileHardware Interface Viewing and Changing the Baud Rate and MacID Setting the Baud Rate and MacID Externally One TouchNetwork Status LED Display Value Baud Epsilon Ei DeviceNet Drive Reference Manual Network Configuration Quick Start EquipmentPolled I/O Setup Example #1 Index SelPredefNetwork Configuration Quick Start Example #2 Index Sel Userdef DN Setup / Index Sel Userdef Inputs Tab Outputs Tab Example #3 Index Type DN Setup / Index Type Output Word Select Input Word Select Example #4 Position Control Dn Setup / Position Control Network Configuration Quick Start Master Configuration RS Networx ConfigurationScanlist Tab Input Tab Output Tab Epsilon Ei DeviceNet Drive Reference Manual How to Send Explicit Messages Explicit Messaging Quick StartExecute Explicit Messaging Examples Description of N10 Integer FileExample 1 Read Index 0 Velocity Explanation of PLC ProgramExamples Example 2 Write Index 1 Velocity Integer File N11 High Byte Low ByteInterger File N10 High Byte Low Byte Explicit Messaging Quick Start Epsilon Ei DeviceNet Drive Reference Manual Drive Parameters By NameName DeviceNet Data TypeUdint Drive Parameters ProductID.Option1IDFunctionModule By DeviceNet Class 0x01 DeviceNet.DeviceNetIdentityObject.DeviceType 104 0x68 See Note 0x09 Index.Instance#.RegistrationOffset 109 0x6D 0x01 0x04 Position.FollowingError 0x01 0x0D Status.TorqueFeedback Epsilon Ei DeviceNet Drive Reference Manual Appendix Index Select PredefinedMaster Receive Assembly Block Index Sel User Def Index Select User DefinedIndex Type Position Control CCWGlossary Drop Line Epsilon DriveExplicit Message Explicit Messaging ConnectionsOne touch Configuration ConnectionsLink Consumer Object Link Producer ObjectUcmm Index Epsilon Ei DeviceNet Drive Reference Manual Index Epsilon Ei DeviceNet Drive Reference Manual