Siemens 505-2557 installation and operation guide

Page 47

The configuration example ladder program sequences through the transfer of all configuration data to the module.

The first rung in the example resets Y32 if Y32 was turned ON on the previous scan. This should be done at the beginning of the ladder scan.

The second rung is a counter that controls loading of the WY registers with configuration data.

When the counter is reset, the current count is equal to zero. If X16 is ON, the WY registers are loaded with Low and High Alarm data from V1 through V32. Y12, Y18, and Y19 are set to the appropriate bit pattern to identify Low/High Alarms Values and Y32 is set ON.

After the WY registers have been read by the module, X16 is turned OFF which bumps the counter current value to 1. When the module has finished processing the Low/High Alarm data, X16 is turned ON and the next MOVW instruction is executed. This rung moves Low/High Scaling values from V33 through V64.

After this data is processed by the module, the next MOVW instruction is executed which loads the WY registers with Filtering Time Constants and Average Sample Counts from V65 through V96.

After this data is processed by the module, the last MOVW instruction is executed which loads the Function Enable Bits into the WY registers from V Memory beginning at V97.

When this transfer is complete, the counter current value is now equal to 4 which is the preset value and the configuration sequence is complete. Another configuration sequence can be initiated by toggling the counter reset bit to reset the counter.

SIMATIC 505±2557 Installation and Operation Guide

Advanced Function Programming 3-17

Image 47
Contents Simatic Copyright 1998 by Siemens Energy & Automation, Inc Manual Publication History List of Effective Pages Contents Iv Contents List of Figures List of Tables Preface Approval Agency ApprovalsEuropean Community CE100 Ohm, 10 Ohm, 120 Ohm RTDs, or Millivolt Inputs DescriptionOperating Modes Word Input to the PLC from the Module Scale Units RTD Input to Digital ConversionOut-of-Range Input SignalsEffect Effect of Voltage Input 10 Ohm Copper Input Resolution ResolutionSelecting 2 and 3 Wire or 4 Wire Operation Installing and Configuring the ModuleCalculating the I/O Base Power Budget Installing and Configuring the Module Configuring Millivolt Input Temperature orSelecting Selecting Data Selecting DegreesCelsius or FahrenheitConfiguration Jumper Locations Base InsertingModule Into Copper Wire Table at 25 Degrees Celsius Wiring the Input ConnectorsPress In Wiring Connector Wiring Diagram for 2, 3, or 4 Wire RTD Wiring Diagram for Millivolt Measurements Cable Grounding Example I/O Configuration Chart Advanced Function Programming Advanced Advanced Software FunctionsIntroduction OverviewJumper Setting the ModuleConfiguration Memory LoggingController I/O Input Channel Data Internal Register StructuresInput and Output Register Offsets Input RegistersPeak/Valley Hold Input Words Input Flag BitsAveraging Output Data RegistersInputs Function Enable BitsControl Registers Discrete Handshake Inputs Data Identification Bits OutputsData Loading Process Loading Data into the Simatic 505±2557 ModuleSample Low and High Alarm Setpoints Identifying the Data Being Transferred 11 Enabling the Functions Loaded Loading Programs into the I/O Module 13 Startup Relay Ladder Logic Page Timing Constraints When UsingTiming Overhead for Functions Enabled Timing ConsiderationsAdditional Information about Each Function Default ValuesDefault Function Values Default Function Values for Simatic 505±2557Degrees Fahrenheit Alarm SetpointsDegrees Centigrade orDigital Filtering Hold AveragingPeak and Valley Flag Bits Hold ResetPrecedence FunctionTroubleshooting Symptom Probable Cause Corrective Action 10 Troubleshooting Flow Diagram17 I/O Register Quick Reference I/O Register Quick ReferenceOr K Memory Configuration Tables Page Addressing Worksheet 18 Open RTD Status Bits Items Unique to the Simatic 505±2557 ModuleTroubleshooting Table B-1 Specifications SpecificationsSpecifications subject to change without notice Jumper Settings Log Sheet Customer Response Business Reply Mail