Siemens SIMATIC FM 452 Manual
Siemens SIMATIC FM 452 Manual

Siemens SIMATIC FM 452 Manual

Electronic cam controller installation and parameter assignment

Advertisement

SIMATIC
FM 452
Electronic Cam Controller
Installation and Parameter
Assignment
Manual
This manual is part of the documentation package
with the order number:
6ES7452-1AH00-8BG0
02/2000
C79000-G7076-C452
Edition 04
Preface, Contents
User Information
Product Overview
Basics of Cam Control
Installing and Removing the
FM 452
Wiring the FM 452 Electronic
Cam Controller
Installing the Software
Programming the FM 452
Putting the FM 452 into Operation
Reference Information
Machine Data and Cam Data
Settings
Encoders
Diagnostics
Samples
Appendices
Technical Specifications
Connection Diagrams
Data Blocks/Error Lists
Index
1
2
3
4
5
6
7
8
9
10
11
12
A
B
C

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC FM 452

  • Page 1 Preface, Contents User Information Product Overview Basics of Cam Control SIMATIC Installing and Removing the FM 452 Wiring the FM 452 Electronic FM 452 Cam Controller Electronic Cam Controller Installing the Software Installation and Parameter Assignment Programming the FM 452 Putting the FM 452 into Operation Manual Reference Information...
  • Page 2 Siemens. This product can only function correctly and safely if it is transported, stored, set up, and instal- led correctly, and operated and maintained as recommended.
  • Page 3 Preface Validity of the Manual This manual contains the description of the FM 452 electronic cam controller valid at the time the manual was printed. We reserve the right to describe modifications in the functionality of the FM 452 in a product information leaflet. The Manual with the ...
  • Page 4 If you have questions about using the products described in the manual and you cannot find the answers here, please contact your local Siemens representative. You will find the addresses, for example, in the appendix ”SIEMENS Worldwide” in the installation manual S7-400/M7-400 Programmable Controllers, Hardware and Installation .
  • Page 5: Table Of Contents

    Contents Product Overview ............What is the FM 452? .
  • Page 6 Contents Putting the FM 452 into Operation ........Machine Data and Cam Data .
  • Page 7 ........... Connection Diagram for Incremental Encoder Siemens 6FX 2001-2 (Up=5V;...
  • Page 8 Contents FM 452 Electronic Cam Controller viii C79000-G7076-C452-04...
  • Page 9: Product Overview

    Product Overview Chapter Overview Section Contents Page What is the FM 452? Areas of Application of the FM 452 Structure of an Electronic Cam Controller with an FM 452 FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 10 Product Overview What is the FM 452? The FM 452 function module is a single-channel, electronic cam controller and is used in the S7-400 programmable controller. It supports both rotary and linear axes. When used for position sensing, you can connect initiators, incremental, or absolute encoders (SSI).
  • Page 11: Areas Of Application Of The Fm

    Product Overview Areas of Application of the FM 452 Example: Applying Glue Tracks In the following example, glue tracks are applied to wooden boards. Each cam track controls one glue gun via a digital output. FM 452 Digital outputs trigger reactions Glue tracks Wooden board Direction of...
  • Page 12: Structure Of An Electronic Cam Controller With An Fm

    Product Overview Structure of an Electronic Cam Controller with an FM 452 Electronic Cam Controller Figure 1-3 shows the components of an electronic cam controller. The schematic is explained briefly below. FM 452 Electronic Cam Controller Power supply Digital outputs Q 0 to 15 EMER STOP Power...
  • Page 13 Product Overview Motor The motor is controlled by the power controller and drives the spindle. FM 452 Electronic Cam Controller The electronic cam controller detects the current position of the axis using the information from an encoder. The encoder signals are evaluated (for example pulses counted) that are proportional to the distances traveled.
  • Page 14 Product Overview FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 15: Basics Of Cam Control

    Basics of Cam Control Chapter Overview Section Contents Page Cams Tracks Hysteresis Dynamic Adjustment 2-10 Interfaces of the Cam Controller 2-11 FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 16: Cams

    Basics of Cam Control Cams Types of Cam With the appropriate parameter settings, each cam can be either a distance cam or time cam. Table 2-1 compares the characteristics of both types of cam. Direction Detection The direction of movement of the axis is determined as follows: With each pulse of an incremental encoder.
  • Page 17 Basics of Cam Control Table 2-1 Definition and Switching of the Two Cam Types Distance Cam Time Cam Representation Cam length Activation time Cam start Cam end Cam start Cam end Parameter The following parameters are required: The following parameters are required: Settings Cam start Cam start...
  • Page 18: Tracks

    Basics of Cam Control Tracks 2.2.1 Tracks and Track Result Tracks With the 32 tracks, you can control a maximum of 32 different switching actions. You can evaluate the tracks with the return signals. Each of the first 16 tracks (track 0 to 15) has a digital output (Q0 to Q15) of the FM 452 assigned to it that can, for example, control a connected contactor directly.
  • Page 19 Basics of Cam Control External Enable of Tracks 3 to 10 You can set an external enable for tracks 3 to 10 in the machine data. The track signals 3 to 10 are then ANDed with digital inputs I3 to I10 before they can switch the respective digital outputs Q3 to Q10 of the FM 452.
  • Page 20: Special Tracks

    Basics of Cam Control 2.2.2 Special Tracks Definition By setting the relevant parameters, you can set tracks 0 to 2 as special tracks, as follows: Track 0 or 1: Counter cam track Track 2: Brake cam track Requirements The following requirements must be met to allow the use of the special tracks: Cams are assigned to the track Cam processing is active The relevant track is enabled...
  • Page 21 Basics of Cam Control Brake Cam Track To use track 2 as a brake cam track, digital input I0 must be connected. A rising signal edge at I0 sets the track flag bit. The track flag bit is reset again when: There is no longer a “1”...
  • Page 22: Hysteresis

    Basics of Cam Control Hysteresis Definition Mechanical disturbances on the axis can cause changes in the actual position value. If the actual position value fluctuates around the edge of a cam or within an active cam with only one activation direction, this cam would be continuously activated and deactivated.
  • Page 23 Basics of Cam Control Effects of a Change of Direction on a Cam with Hysteresis The following table illustrates the response of a cam when there is a change of direction. A distinction must be made between the behavior of a distance cam and a time cam.
  • Page 24: Dynamic Adjustment

    Basics of Cam Control Dynamic Adjustment Purpose The dynamic adjustment is used to compensate delays resulting from the connected switching elements. Lead Time This delay can be specified as a lead time that you specify separately for each cam. Per cam, you can specify one lead time. The lead time applies to the cam start and cam end.
  • Page 25: Interfaces Of The Cam Controller

    Basics of Cam Control Interfaces of the Cam Controller Overview The schematic below shows the most important interfaces to illustrate the relationship between data, inputs and outputs. Encoder signals Machine data Channel DB I3 to I10 Track 2 Track 0 to 1 Track 3 Track 3 ...
  • Page 26 Basics of Cam Control The schematic is explained in the table below. No. Description Section When the FM 452 processes the cams, the cam flag bits are calculated from the switching conditions and the current actual value. The track results based on the (page 2-2) assignment of the cams to the tracks are also calculated.
  • Page 27: Installing And Removing The Fm 452

    Installing and Removing the FM 452 Important Safety Rules When integrating an S7-400 with an FM 452 in a plant or system, there are important rules and regulations that are described in the installation manual S7-400/M7-400 Programmable Controllers, Hardware and Installation . Selecting Slots The electronic cam controller FM 452 can be installed in a central or expansion rack just like a signal module.
  • Page 28 Installing and Removing the FM 452 FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 29: Wiring The Fm 452 Electronic Cam Controller

    Wiring the FM 452 Electronic Cam Controller Chapter Overview Section Contents Page Pinout of the Front Connector Wiring of the Front Connector Important Safety Rule It is essential for the safety of the system to install the elements listed below and to adapt them to your system.
  • Page 30 Wiring the FM 452 Electronic Cam Controller Pinout of the Front Connector Front Connector Connect the encoder, the digital inputs and outputs and the auxiliary power supplies via the 48-pin front connector. Pinout of the Front Connector Name Initiator Incremental Encoder Absolute Encoder Auxiliary supply 24 V DC A / DAT...
  • Page 31 Wiring the FM 452 Electronic Cam Controller Name Initiator Incremental Encoder Absolute Encoder Digital output 14 Digital output 15 Auxiliary supply 24 V DC Brake cam track enable Length measurement/ edge detection/ setting actual value on-the-fly Reference point switch Enable track signal 3 Enable track signal 4 Enable track signal 5 Enable track signal 6...
  • Page 32 Wiring the FM 452 Electronic Cam Controller 16 Digital Outputs (Q0 to Q15) The state (on/off) of tracks 0 to 15 is output via 16 digital outputs. The digital outputs are connected to module chassis. The following loads directions are possible: Operating voltage 24 V Current load 0.5 A/short-circuit proof A separate LED indicates the state of each output.
  • Page 33: Wiring The Front Connector

    Wiring the FM 452 Electronic Cam Controller Wiring the Front Connector Connecting Cords The cords for digital inputs and digital outputs must be shielded if they exceed certain lengths, as follows: – digital inputs: cord length of more than 32 m –...
  • Page 34 Wiring the FM 452 Electronic Cam Controller Ground Connection The ground of the auxiliary supplies is electrically connected to the ground of the CPU; in other words, you must connect pin 48 (M) to the ground of the CPU with low resistance.
  • Page 35 Wiring the FM 452 Electronic Cam Controller Wiring Procedure Warning Injury to persons or damage to equipment if the power supply is not turned off. If you wire the front connector of the FM 452 while it is live, you risk injury from electric shock.
  • Page 36 Wiring the FM 452 Electronic Cam Controller FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 37: Installing The Software

    – SIEMENS\STEP7\EXAMPLES\zEn19_01 : example – SIEMENS\STEP7\MANUAL: manual Note If you installed STEP 7 in a folder other than SIEMENS\STEP7, this folder is entered. Configuration and Parameter Assignment These topics are described in Chapter 7. FM 452 Electronic Cam Controller...
  • Page 38 Installing the Software FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 39 Programming the FM 452 Chapter Overview Section Contents Page Basics of Programming an FM 452 FC CAM_INIT (FC 0) FC CAM_CTRL (FC 1) FC CAM_DIAG (FC 2) 6-10 FC CAM_MSRM (FC 3) 6-12 Data Blocks 6-14 Interrupts 6-17 Technical Specifications 6-19 Fast Access to Module Data 6-21...
  • Page 40: Basics Of Programming An Fm

    Programming the FM 452 Basics of Programming an FM 452 Task You can assign parameters, control and start up the FM 452 module in a user program. To exchange data between the user program and module, you use the functions (FCs) and data blocks (DBs) described below. Preparations Open the block library FMx52LIB in the SIMATIC Manager and copy the required functions (FCs) and block templates (UDTs) to the block folder of your...
  • Page 41 Programming the FM 452 Create data blocks using the UDTs in the block folder of your S7 program. If you use several modules, you require a separate set of data blocks for each module. Enter the module address in the channel DB and, if used in the diagnostic DB, also at the address MOD_ADDR.
  • Page 42: Fc Cam_Init (Fc 0)

    Programming the FM 452 FC CAM_INIT (FC 0) Task FC CAM_INIT initializes the following data in the channel DB: The control signals The return signals The trigger, done, error bits of the jobs The function switches and their done and error bits The job management and the internal buffers for FC CAM_CTRL and FC CAM_MSRM Call...
  • Page 43: Fc Cam_Ctrl (Fc 1)

    Programming the FM 452 FC CAM_CTRL (FC 1) Tasks With FC CAM_CTRL, you can read the operating data from the module, initialize the module, and control it during operation. For these tasks, you use the control signals, return signals and write and read jobs. Each time it is called, the function performs the following activities: Read return signals: FC CAM_CTRL reads all return signals from the module and enters them in the...
  • Page 44 Programming the FM 452 Jobs Data exchange with the module other than the control and return signals is handled using jobs. To start a job, you set the corresponding trigger bit in the channel DB and provide the relevant data for write jobs. You then call FC CAM_CTRL to execute the job. A read job is executed immediately.
  • Page 45 Programming the FM 452 Call Parameters Name Data Type Meaning DB_NO Number of the channel DB RET_VAL Return value Return Values The function provides the following return values: RET_VAL Description At least one job active No job active, no error Error: Data error (DAT_ERR) or Communication error (JOB_ERR) occurred...
  • Page 46 Programming the FM 452 Job Status You can check the status of job execution using the return value RET_VAL and the JOBBUSY activity bit in the channel DB. You can evaluate the status of a single job based on the trigger, done, and error bits of the job. Job active: –...
  • Page 47 Programming the FM 452 Response to Errors If bad data were written by a write job, the module returns the message DATA_ERR = 1. If an error occurs in communication with the module during a write or read job, the cause of the error is entered in the JOB_ERR parameter in the channel DB.
  • Page 48: Fc Cam_Diag (Fc 2)

    Programming the FM 452 FC CAM_DIAG (FC 2) Tasks Using FC CAM_DIAG, you read out the diagnostic buffer of the module and can make it available for display in an operator control and monitoring system or for programmed evaluation. Call This function must be called cyclically.
  • Page 49 Programming the FM 452 Return Values The function provides the following return values: RET_VAL Description Job active No job active, no error –1 Error: Response to Errors If an error occurs in a job, the cause of the error can be found in the diagnostic DB in the JOB_ERR parameter (see Chapter 11, Diagnostics and Appendix C.3, Page C-12).
  • Page 50: Fc Cam_Msrm (Fc 3)

    Programming the FM 452 FC CAM_MSRM (FC 3) Tasks You use FC CAM_MSRM when you want to evaluate the measurement data of length measurements or edge detection immediately in the hardware interrupt OB. Call The function is called in a hardware interrupt OB (for example OB 40). Data Used The module address must be entered in the channel DB.
  • Page 51 Programming the FM 452 Measurement Results and Status Information The measurement results and status information are entered in the channel DB: Table 6-1 Interrupt Measured Data in the Channel DB Address Name Type Initial Comment Value 112.0 BEG_VAL DINT Initial Value 116.0 END_VAL DINT...
  • Page 52: Data Blocks

    Programming the FM 452 Data Blocks 6.6.1 Templates for Data Blocks The supplied library (FMx52LIB) contains a block template (UDT) for each data block. Based on this UDT, you can create data blocks with any numbers and names. Optimizing the UDT To save memory, you can delete unused data areas at the end of the UDT CAM_CHANTYPE.
  • Page 53 Programming the FM 452 6.6.3 Diagnostic DB Task The diagnostic DB provides the data storage for FC CAM_DIAG and contains the diagnostic buffer of the module created by this function. Structure Diagnostic DB Module address Internal data Job status Trigger bit Diagnostic buffer 6.6.4 Parameter DB...
  • Page 54: Interrupts

    Programming the FM 452 Interrupts Interrupt Handling The FM 452 can trigger hardware interrupts and diagnostic interrupts. You service these interrupts in an interrupt OB. If an interrupt is triggered and the corresponding OB is not loaded, the CPU changes to STOP (refer to the manual Programming with STEP 7).
  • Page 55 Programming the FM 452 Lost Hardware Interrupts If the processing of a hardware interrupt is not yet completed in the hardware interrupt OB, the module registers all subsequent hardware interrupt events. If an event occurs again before the hardware interrupt could be triggered, the module triggers the “hardware interrupt lost”...
  • Page 56: Technical Specifications

    Programming the FM 452 Technical Specifications The following table provides an overview of the technical specifications of the functions. Table 6-3 Technical Specifications for the FM 452 Technological Functions Block Name Versi Space Space Space Called Occupied Occupied Occupied in Code/Data System Functions in Load...
  • Page 57 Programming the FM 452 Execution Times The following table provides you with an overview of the execution times of the functions for the FM 452. The run time from the first block call to the done message (trigger bit is reset) is shown. The cycle is extended by between 1 and 2 ms when a function is called.
  • Page 58: Fast Access To Module Data

    Programming the FM 452 Fast Access to Module Data Application In special applications or in an interrupt level, particularly fast access to return and control signals is necessary. You can obtain this data directly via the input and output areas of the module. To coordinate startup following each module startup (for example after inserting the module, CPU STOP RUN), FC CAM_CTRL must be called continuously until...
  • Page 59 Programming the FM 452 Direct Access for Writing Control Signals The byte addresses are specified relative to the input address of the module. The names of the bits correspond to the names in the channel DB. In STL, you access the data with the commands PQB (write 1 byte) and PQW (write 2 bytes).
  • Page 60: Parameter Transfer Routes

    Programming the FM 452 6.10 Parameter Transfer Routes The term parameter includes the following machine and cam data. FM 452 PG/PC online offline Download User Para. ass. program user interface Upload to PG CAM_CTRL HW Config Parameters (machine and cam data) System data System data (SDB)
  • Page 61 Programming the FM 452 Typical Situations for the Transfer of Parameters: 1 You edit the parameters with the parameter assignment user interface. The module must then be assigned the parameters automatically during startup. Action required: steps 1, 2, 3 2 You modify parameters during startup in the test mode in the parameter assignment user interface: Action required: steps 4, 5 3 You set the parameters with the parameter assignment user interface.
  • Page 62 Programming the FM 452 FM 452 Electronic Cam Controller 6-24 C79000-G7076-C452-04...
  • Page 63: Putting The Fm 452 Into Operation

    Putting the FM 452 into Operation Important Note Please read the points in the following warning carefully. Warning To prevent injury to personnel and damage to equipment, please note the following points: Install an EMERGENCY STOP switch in the vicinity of the computer. This is the only way to ensure that the system can be switched off safely in the event of a computer or software failure.
  • Page 64 Putting the FM 452 into Operation Hardware Installation and Wiring In the first section, you will install the FM 452 in your S7-400 and wire up the front connector. What Needs to Be Done? Step Install the FM 452 (see Chapter 3) Insert the module in one of the slots available.
  • Page 65 Putting the FM 452 into Operation Assigning Parameters with the Parameter Assignment User Interface. If you are putting the module into operation for the first time, assign the parameters for the module using the parameter assignment software. Keep to the sequence below: Step What Needs to Be Done?
  • Page 66 Putting the FM 452 into Operation What Needs to Be Done? Step Synchronize the axis Incremental encoders Absolute encoders – Select “set reference point”. Enter – The FM 452 is synchronized the required value (see immediately after parameter Section 9.4). assignment.
  • Page 67 Putting the FM 452 into Operation Preparations for Programming You still need to create the blocks required in your project. Step What Needs to Be Done? Select the library FMX52LIB in the SIMATIC Manager (File > Open > Libraries). Copy the functions FC0, FC1 and the channel DB template UDT1 to your blocks folder. Create a channel DB based on the UDT1 template for each module.
  • Page 68 Putting the FM 452 into Operation FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 69: Machine Data And Cam Data

    Machine Data and Cam Data Chapter Overview Section Contents Page Writing and Reading the Machine and Cam Data System of Units Machine Data of the Axis Absolute Encoder Adjustment 8-12 Machine Data for the Encoder 8-15 Resolution 8-20 Number of Cams and Track Data 8-23 Interrupt Enable 8-25...
  • Page 70 Machine Data and Cam Data Writing and Reading the Machine and Cam Data This chapter is relevant if you want to write the parameters directly to the module using instructions in the user program without using the parameter assignment user interface. All the machine and cam data are stored in the parameter DB.
  • Page 71: Settings

    Machine Data and Cam Data Note If parameters that are relevant for synchronization were modified, the synchronization is deleted when the machine data are activated. The settings are also reset and all the machine and cam data are deleted on the module. Parameters relevant for synchronization are as follows: Axis type End of rotary axis...
  • Page 72 Machine Data and Cam Data Writing Cam Data With the cam data, you specify the type and action of the cams and their assignment to the tracks. Cam data are located in the parameter DB from address 108.0 onwards. They are grouped in packages each with 16 cams.
  • Page 73 Machine Data and Cam Data Address Name Type Initial Comment Value 38.0 CAM7RD_EN BOOL FALSE 1 = Read cam data 7 (cams 96 to 111) 38.1 CAM8RD_EN BOOL FALSE 1 = Read cam data 8 (cams 112 to 127) Order when Writing Machine and Cam Data Always modify machine and cam data in the following order: Write machine data Activate machine data...
  • Page 74 Machine Data and Cam Data System of Units Selecting a unit In the parameter assignment user interface of the cam controller, you can select a specific unit for inputting and outputting data (default: mm). You can also select the following units: Millimeters, inches, degrees and pulses.
  • Page 75: Encoders

    Machine Data and Cam Data Machine Data of the Axis Axis Data Address Name Type Initial Comment Value 12.0 AXIS_TYPE DINT Axis type: 0 = Linear axis 1 = Rotary axis A linear axis is an axis with a limited physical travel range. Physical start Physical end A rotary axis is an axis whose travel range is not restricted by mechanical limit stops.
  • Page 76 Machine Data and Cam Data Address Name Type Initial Comment Value 44.0 REFPT DINT Reference point coordinate: Range: – 1 000 000 000 m to + 1 000 000 000 m Incremental encoder and initiator: Using the “Retrigger Reference Point” function switch and a synchronization event specified by the “Type of Reference Point Retriggering”, the reference point coordinate is assigned to this event.
  • Page 77 Machine Data and Cam Data Address Name Type Initial Value Comment 64.0 SSW_STRT DINT L# –100 000 000 Start software limit switch End software limit switch 68.0 SSW_END DINT L# 100 000 000 Range: – 1 000 000 000 m to 1 000 000 000 m This axis data is only of significance with a linear axis.
  • Page 78 Machine Data and Cam Data Distance Cams and Hysteresis A distance cam is activated in the following situation: the detected actual value is within the distance cam and no hysteresis is active. The position of the switching point depends on where the direction changes. Activation direction Cam is activated since the cam start is reached in the positive...
  • Page 79 Machine Data and Cam Data Address Name Type Initial Comment Value 84.0 SIM_SPD DINT Simulation Speed The simulation speed depends on the resolution. 0 = stationary 5 10 = Highest possible setting of the module Within this range, the simulation speed depends on the resolution: 1000 resolution...
  • Page 80 Machine Data and Cam Data Absolute Encoder Adjustment Definition With absolute encoder adjustment and the reference point coordinate, there is a defined correlation between the range of values of the encoder and the coordinate system of the axis. Address Name Type Initial Value Comment...
  • Page 81 Machine Data and Cam Data Example of Absolute Encoder Adjustment In the example, the following is assumed: Reference-point coordinate = -125 mm Working range of SSW_STRT = -1000 mm to SSW_END = 1000 mm Absolute encoder adjustment = 0 Encoder range = 2048 increments (= pulses) with a resolution of 1 mm/increment The absolute encoder used cannot be exactly adjusted mechanically and also does not have the option of setting the actual value.
  • Page 82 Machine Data and Cam Data Result After Setting the Reference Point After setting the reference point, the relationship between the encoder and coordinate system is as follows: The reference point coordinate on the axis (-125) is assigned to the encoder value (1798) calculated from the absolute encoder adjustment.
  • Page 83 Machine Data and Cam Data Machine Data of the Encoder Definition The encoder supplies position information to the module; the module evaluates this information taking into account the resolution and calculates an actual value. You can only be sure that the calculated actual value of the axis position matches the actual axis position when the information in the machine data of the encoder is correct.
  • Page 84 Machine Data and Cam Data Address Name Type Initial Value Comment 24.0 DISP_REV DINT L#80000 Distance per encoder revolution : Range of values: 1 m to 1 000 000 000 m With the machine data “distance per encoder revolution” you inform the FM 452 of the distance covered by the drive system per encoder revolution.
  • Page 85 Machine Data and Cam Data Address Name Type Initial Value Comment 32.0 INC_REV DINT L#500 Increments per encoder revolution: Range of values: 1 to 2 Note If you are using pulses as the unit, this entry has no significance. The “increments per encoder revolution” machine data specifies the number of increments output by an encoder per revolution.
  • Page 86 Machine Data and Cam Data Address Name Type Initial Value Comment 36.0 NO_REV DINT L#1024 Number of encoder revolutions: Range of values: 1 (single-turn encoder) 2 to 2 (multi-turn encoder) The machine data “number of encoder revolutions” is only necessary for absolute encoders. You use it to define the number of revolutions possible with this encoder.
  • Page 87 Machine Data and Cam Data Address Name Type Initial Value Comment 59.0 CNT_DIR BOOL FALSE Count direction: 0 = normal 1 = inverted With the machine data “count direction”, you match the direction of the position detection to the direction of axis movement.
  • Page 88 Machine Data and Cam Data Resolution Definition The resolution is a measure of the accuracy of cam processing. It also determines the maximum possible travel range. The resolution (RES) is calculated as shown in the following table: Incremental Encoders Absolute Encoders/Initiators Input values Travel per encoder revolution Travel per encoder revolution...
  • Page 89 Machine Data and Cam Data Range of Values of the Resolution The range for the resolution must be converted to the basic system of units. The resolution must be kept within this range by selecting the values “distance per encoder revolution” and “increments per encoder revolution”. Based on the systems of units, the ranges for the resolution are as follows: System of Specifications...
  • Page 90 Machine Data and Cam Data Relationship Between Travel Range and Resolution The travel range is limited by the numeric representation in the FM 452. The number representation varies depending on the resolution. Therefore, make sure that you are always within the permitted limits when specifying values. The maximum travel range is represented in the table below: Resolution (RES) is in the Range Maximum Travel Range...
  • Page 91 Machine Data and Cam Data Number of Cams and Track Data Number of Cams The number of cams determines the cam cycle time and the maximum number of cams that can be set. Number of Cams Cam Cycle Time 16 cams 20.48 s 32 cams 40.96 s...
  • Page 92 Machine Data and Cam Data Address Name Type Initial Value Comment Enable input: 95.0 EN_IN_I3 BOOL FALSE 1 = track signal track 3 is ANDed with enable input 1 = track signal track 10 is ANDed with enable 95.7 EN_IN_I10 BOOL FALSE input I10...
  • Page 93 Machine Data and Cam Data Interrupt Enable Definition You can decide whether hardware interrupts are generated when certain events occur (see Section 6.1, Page 6-2). Cam on/off In the cam data, you can specify where the hardware interrupts are generated when cams 0 to 7 are activated and/or deactivated (see Section 8.9, Page 8-26).
  • Page 94 Machine Data and Cam Data Cam Data Definition Cam data describe the characteristics of a cam, the assignment of each cam to a track, and the switching behavior of the cam. The cam data listed below are set for each individual cam. Only the cams you set as “true”...
  • Page 95 Machine Data and Cam Data Description Distance cam Time cam On time A cam is approached and left in any direction; both directions are set as the activation direction. On time x = t1 + t2 + t3 Set cam Switched cam Cam Data in the Parameter DB Address...
  • Page 96 Machine Data and Cam Data Address Name Type Initial Value Comment (relative) For distance cams +2.0 CBEGIN DINT L#–100000000 Cam start (CS) +6.0 CEND DINT L#100000000 Cam end (CE) Range: – 1 000 000 000 m to 1 000 000 000 m Minimum Length of a Distance Cam Pulses;...
  • Page 97 Machine Data and Cam Data Address Name Type Initial Value Comment (relative) + 10.0 LTIME Lead Time Range: (0 to 53686) 100 s with a maximum of 16 cams (0 to 65535) 100 s with a maximum of 32, 64 or 128 cams Delays in the connected switching elements can be compensated by specifying a lead time.
  • Page 98 Machine Data and Cam Data Dynamic Adjustment on a Cam There are two distinct situations relating to the range of the cam: 1. The static and dynamic range of the cam overlap. 2. The static and dynamic range of the cam do not overlap. Table 8-1 Dynamic Adjustment on a Cam (Different Cases) Dynamic Adjustment...
  • Page 99: Diagnostics

    Settings Chapter Overview Section Contents Page Influence of the Settings on the Switching Response of Time Cams Set Actual Value / Set Actual Value on-the-fly / Reset Actual Value Zero Offset Set Reference Point Changing the Cam Edges 9-11 Fast Cam Parameter Change 9-13 Length Measurement / Edge Acqusition 9-15...
  • Page 100 Settings Influence of Settings on the Switching Response of Time Cams Actual Value Changes A time cam can be skipped by the following settings that change the actual value: Set actual value Set actual value on-the-fly Zero offset Retrigger reference point Switching a Time Cam If you skip the start of a time cam due to one of the settings listed above, this cam is activated as long as the actual direction in which the axis is moving matches the...
  • Page 101 Settings Set Actual Value / Set Actual Value on-the-fly / Cancel Set Actual Value Definition With the settings “Set actual value/Set actual value on-the-fly”, you assign a new coordinate to the current encoder reading. The coordinate system is shifted as a result by the value: ACT –...
  • Page 102 Settings Data Used in the Channel DB Address Name Type Initial Value Comment 36.4 AVAL_EN BOOL FALSE 1 = set actual value 36.5 FVAL_EN BOOL FALSE 1 = set actual value on-the-fly 90.0 AVAL DINT Coordinate for actual value 94.0 FVAL DINT Coordinate for flying actual value...
  • Page 103 Settings Table 9-1 Displacement of the Coordinate System by “Set Actual Value” / “Set Actual Value on-the-Fly” Set Actual Value [mm] [mm] [mm] Old coordinate system ACT SLE [mm] –500 -400 Displacement of the coordinate coordinate Axis system by +200 mm: Set actual value to 400 mm -200...
  • Page 104 Settings Zero Offset Definition With the “zero offset” setting, you shift the zero point in the coordinate system by the specified value. The sign determines the direction of the shift. Calculating the New Coordinate All the values in the shifted coordinate system can be calculated according to the following formula: coordinate = coordinate...
  • Page 105 Settings Effects on a Linear Axis Based on the example of a zero offset of -200 mm you can see that this setting shifts the coordinate system in a positive direction. The following effects result: The working range is not physically shifted. The individual points (such as the software limit switches) are assigned new coordinate values.
  • Page 106 Settings Effects on a Rotary Axis Based on the example of a zero offset by -45 , you can see how this setting turns the coordinate system: ACT = 25 Tool at ACT = 25 ZPO= -45 Tool at ACT = 340 ACT = 340 ACT = 25 The zero point...
  • Page 107 Settings Set Reference Point Definition With the “set reference point” setting, you synchronize the axis. The setting shifts the working area. All shifts resulting from a zero offset or from set actual value remain in force. Requirements Cam processing must be switched off. Sequence of the Setting 1.
  • Page 108 Settings Table 9-3 Shifting the Working Range on the Axis Using “Set Reference Point”” Set Reference Point [mm] [mm] [mm] Old coordinate system -400 [mm] –500 Shift in the working range working range to 300 mm with “set reference point” -400 [mm] –500...
  • Page 109 Settings Changing the Cam Edges Definition With the “change cam edges” setting, you can change the cam start and, with distance cams, also the cam end of a single cam. Requirements The cam you want to change must be valid. Sequence of the Setting 1.
  • Page 110 Settings Effects of the Setting The FM 452 first shifts the on edge and then the off edge of the cam. This sequence does not depend on the direction in which the cam is shifted. Special situation: Due to the sequence explained above, an inverse cam can result briefly if the new cam start is higher than the old cam end.
  • Page 111 Settings Fast Cam Parameter Change Definition With the “fast cam parameter change” setting, you can modify up to 16 cams at the same time during operation. Requirements The cams you want to modify must be valid. Sequence of the Setting 1.
  • Page 112 Settings Deactivating a Cam During Modification A consistent modification of the cam start and the cam end is only possible if you deactivate the cam during the modification (CAM_OFF). Data Check by the Module With the DIS_CHECK (channel DB) parameter, you activate or deactivate the checking of the transferred data by the FM 452.
  • Page 113 Settings Length Measurement/Edge Acquisition Definition With the settings “length measurement” and “edge detection”, you can find out the length of a workpiece. The length measurement and edge detection are and remain active until you deactivate them again or until you select a different measuring method. If you select both methods at the same time, FC CAM_CTRL activates the length measurement.
  • Page 114 Settings Sequence of the Settings Depending on the type of measurement, the FM 452 updates the data on the module at different times. The FM 452 signals every update in a parameter on the return interface. Length Measurement Edge Detection MSR_ON EDGE_ON Update data...
  • Page 115 Settings Data Used in the Channel DB Address Name Type Initial Value Comment 25.1 MSR_DONE BOOL FALSE 1 = length measurement completed 34.0 EDGE_ON BOOL FALSE 1 = edge detection on 34.2 MSR_ON BOOL FALSE 1 = length measurement on 38.2 MSRRD_EN BOOL...
  • Page 116 Settings Incorrect Measurement If a length measurement / edge detection is incorrect, the FM 452 returns the value -1 for the length. A “length measurement” or “edge detection” can pass through zero a maximum of 126 times in one direction. As soon as more than 126 zero passes in one direction are recognized by the FM 452, an incorrect “length measurement”...
  • Page 117 Settings Retrigger Reference Point Definition With the “retrigger reference point” setting, you can synchronize the axis as result of recurrent external event. The setting remains active until you switch it off again. Requirements You are using an incremental encoder or initiator. The external event can be a zero marker of an incremental encoder or a reference point switch at input I2.
  • Page 118 Settings Data Used in the Channel DB Address Name Type Initial Value Comment 34.3 REFTR_ON BOOL FALSE 1 = retrigger reference point 25.0 SYNC BOOL FALSE 1 = axis is synchronized Data Used in the Parameter DB Address Name Type Initial Value Comment 44.0...
  • Page 119 Settings Table 9-4 Displacement of the Working Range on the Axis by Retrigger Reference Point Retrigger reference point [mm] [mm] [mm] [mm] Old coordinate system [mm] –500 -400 Displacement of the working range by retrigger retrigger reference point at 300 mm -400 –500 ACT=REF...
  • Page 120 Settings Deactivating Software Limit Switches Definition With the “deactivate software limit switch” setting, you deactivate the monitoring of the software limit switches of the linear axis. The setting remains active until you switch it off again. The software limit switches originally set then become active again.
  • Page 121 Settings 9.10 Simulation Definition The “simulation” setting allows you to activate the cam controller without connected encoders. Sequence of the Setting 1. Enter the simulation speed in the parameter DB. 2. Write and activate the machine data. 3. Select either the positive or negative direction in the channel DB as the simulation direction.
  • Page 122 Settings Effects of Deactivating Simulation Cam processing is stopped The synchronization is deleted for an incremental encoder or an initiator. The value of the reference point coordinate is then set as the actual value. With an absolute encoder, the actual position is signaled that corresponds to the current encoder status.
  • Page 123 Settings 9.11 Counted Values of the Counter Cam Tracks Definition With the “counted values of the counter cam tracks” setting, you read out the current counted values. Sequence of the Setting 1. Specify the counter cam tracks and the upper counted values in the machine data.
  • Page 124 Settings 9.12 Position and Track Data Definition With the setting “position and track data”, you read the current actual position, the feedrate and the track flag bits. The track flag bits are acquired before they are logically combined with machine and channel data. The calculation algorithm implemented on the FM 452 calculates speed changes higher than 1 pulse per 4 ms with a slight inaccuracy The displayed speed is therefore not fully accurate and is not suitable for control purposes.
  • Page 125 Settings 9.13 Encoder Data Definition With the “encoder data” setting, you read the current data of the encoder and the value of the absolute encoder adjustment. Requirements You can read out the value for the absolute encoder adjustment after making the setting “set reference point”...
  • Page 126 Settings 9.14 Cam and Track Data Definition With the setting “cam and track data”, you read the current cam and track flag bits and the position. The track flag bits are acquired before they are logically combined with machine and channel data. Sequence of the Setting 1.
  • Page 127 Settings 9.15 Control Signals for the Cam Controller Definition With the “control signals for the cam controller” setting, you enable cam processing and the tracks. Sequence of the Setting 1. Set the trigger bit in the channel DB. 2. The data are transferred to the module whenever FC CAM_CTRL is called. Data Used in the Channel DB Address Name...
  • Page 128 Settings 9.16 Return Signals for the Cam Controller Definition The “return signals for the cam controller” setting informs you about the current state of the cam controller and the track signals. Consistency between the signaled position and the track signals is not guaranteed. Sequence of the Setting 1.
  • Page 129 Settings 9.17 Return Signals for Diagnostics Definition The “return signals for diagnostics” setting informs you of diagnostic events that have occurred. Sequence of the Setting 1. When the module makes a new entry in the diagnostic buffer, it sets the DIAG bit.
  • Page 130 Settings FM 452 Electronic Cam Controller 9-32 C79000-G7076-C452-04...
  • Page 131 Encoders In this Chapter Section Contents Page 10.1 Incremental Encoders 10-2 10.2 Initiators 10-5 10.3 Absolute Encoders 10-6 FM 452 Electronic Cam Controller 10-1 C79000-G7076-C452-04...
  • Page 132 Encoders 10.1 Incremental Encoders Connectable Incremental Encoders Incremental encoders with two pulses electrically offset by 90 with or without zero marks are supported: Encoders with asymmetrical output signals with 24 V level – Cut-off frequency = 50 kHz: – max. 100 m line length. Encoders with symmetrical output signals with 5 V differential interfaces conforming to RS-422 –...
  • Page 133 Encoders Signal evaluation Increments An increment identifies a signal period of the two signals A and B of an encoder. This value is given in the technical specifications of an encoder and/or on its type label. Signal period= Increment Pulses Quadruple evaluation Figure 10-2 Increments and Pulses...
  • Page 134 Encoders Example An example for the minimum and maximum reaction time when using 16 cams: Cam cycle: approx. 20 µs Switching time of the hardware: approx. 150 µs Minimum reaction time = 20 µs + 150 µs = 170 µs Maximum reaction time = 2 20 µs + 150 µs = 190 µs Note You can compensate the reaction time with appropriate parameter settings for the...
  • Page 135 Encoders 10.2 Initiators Initiators are simple switches without direction information that output pulses. You specify the direction with the machine data for selecting the initiator. Caution Damage to equipment is possible. Specifying a direction incorrectly can lead to serious errors in the system (for example as a result of incorrectly activating units.
  • Page 136 Encoders 10.3 Absolute Encoders Single-turn and Multi-turn Encoders Absolute encoders are grouped as follows: Single-Turn Encoders Single-turn encoders form the total encoder range on one encoder revolution. Multi-Turn Encoders Multi-turn encoders form the total encoder range over a number of encoder revolutions.
  • Page 137 Encoders Listen-In ”Listen-In” means the following: An absolute encoder is operated in parallel on two modules (for example FM 451 and FM 452). The FM 451 positioning module is the master and the clocks the absolute encoder, and the FM 452 electronic cam controller is the slave and listens in to the signals of the SSI frame.
  • Page 138 Encoders Reaction Times With absolute encoders, the FM 452 has the following reaction times: Minimum reaction time = frame run time + cam cycle + switching time of the connected switching elements Maximum reaction time = 2 frame run time + monostable flip-flop time + 2 cam cycle + switching time of the connected switching elements With programmable absolute encoders: Maximum reaction time =...
  • Page 139 Encoders Note You can compensate the reaction time with appropriate parameter settings for the cams or using dynamic adjustment. Unsharpness Unsharpness is the difference between the maximum and minimum reaction time. With an Absolute encoder it is as follows: Unsharpness = 1 cam cycle + frame run time + monostable flip-flop time With programmable absolute encoders: Unsharpness = 1 cam cycle + frame run time + monostable flip-flop time + 1/max.
  • Page 140 Encoders FM 452 Electronic Cam Controller 10-10 C79000-G7076-C452-04...
  • Page 141 Diagnostics Chapter Overview Section Contents Page 11.1 Possibilities for Error Evaluation 11-2 11.2 Meaning of the Error LEDs 11-3 11.3 Diagnostic Interrupts 11-4 FM 452 Electronic Cam Controller 11-1 C79000-G7076-C452-04...
  • Page 142 Diagnostics 11.1 Possibilities for Error Evaluation With the programming device/PC, you can read out the diagnostic buffer with the parameter assignment user interface using Test > Error Evaluation. – You will see the error class and error number along with plain text. You can evaluate errors in your program based on the following information: –...
  • Page 143 Diagnostics 11.2 Meaning of the Error LEDs The status and error displays indicate various error states. The LEDs are lit, even with errors that occur briefly, for at least 3 seconds. INTF EXTF Figure 11-1 Status and Fault/Error Indicators of the FM 452 Indicator Meaning Explanation...
  • Page 144 Diagnostics 11.3 Diagnostic Interrupts Interrupt Servicing The FM 452 can trigger hardware interrupts and diagnostic interrupts. You service these interrupts in an interrupt OB. If an interrupt is triggered and the corresponding OB is not loaded, the CPU changes to STOP (refer to the manual Programming with STEP 7).
  • Page 145 Diagnostics The FM 452 Detects an Error (”entering state”) A diagnostic interrupt is “entering state” when at least one error is pending. If only some of the errors are eliminated, the remaining pending errors are signaled again as “entering state”. Sequence: 1.
  • Page 146 Diagnostics FM 452 Electronic Cam Controller 11-6 C79000-G7076-C452-04...
  • Page 147 Samples Chapter Overview Section Contents Page 12.1 Introduction 12-2 12.2 Requirements 12-2 12.3 Preparing the Samples 12-3 12.4 Code of the Samples 12-3 12.5 Testing a Sample 12-4 12.6 Adapting a Sample 12-4 12.7 Sample Program 1 “GettingStarted” 12-5 12.8 Sample Program 2 “Commission”...
  • Page 148 Samples 12.1 Introduction When you install the FM 352/FM 452 software package, a sample project is also installed that illustrates several typical applications based on a number of selected functions. The English sample project is in the following folder: ...\STEP7\EXAMPLES\zEn19_01 This contains several S7 programs of varying complexity and with different aims.
  • Page 149 Samples 12.3 Preparing the Samples To be able work through the samples online, make the following preparations: 1. Open the sample project ...\STEP7\EXAMPLES\zEn19_01_FMx52___Prog with the SIMATIC Manager and copy it to your project folder giving it a suitable name. 2. Insert a station in this project to match your hardware configuration. 3.
  • Page 150 Samples 12.5 Testing a Sample When you have made all the necessary entries for the sample, download the complete block folder to the CPU. The sample programs include variable tables (VATs) with which you can view and modify the data blocks online (in other words in the RUN-P mode on the CPU). In the variable table, select the views “Symbol”...
  • Page 151 Samples 12.7 Sample Program 1 “GettingStarted” Aim: With this sample, you can put your cam controller into operation once you have assigned parameters to it using the parameter assignment user interface based on the “Getting Started” primer. The sample extends the program shown in the “Linking in the User Program” chapter of the primer by adding error evaluation.
  • Page 152 Samples Error Evaluation: Produce a data error by entering a reference point coordinate greater than the end of the rotary axis (for example 10000000). The CPU changes to STOP. (In a sample, this is the simplest method of indicating an error. You can, of course, program a more elegant method.) Open the hardware configuration and double-click the FM 352 or FM 452.
  • Page 153 Samples 12.8 Sample Program 2 “Commission” Aim: In this sample, you start up a cam controller without using the parameter assignment user interface. You control and monitor using variable tables (VATs). Requirements: You have assigned parameters for the cam controller as described in the “Getting Started”...
  • Page 154 Samples Error Evaluation: Attempt to create further errors: Specify a reference point coordinate that is higher than the end of the rotary axis. Turn off the external power supply. Delete PARADB on the CPU (online) and attempt to write machine data. (The error evaluation is once again programmed [spitefully] so that the CPU changes to STOP.
  • Page 155 Samples 12.9 Sample Program 3 “OneModule” Aim: In this sample, you control a cam controller with a user program. The user program starts up the module following a CPU warm restart. Afterwards, it executes a series of steps that reacts to events. Using the variable tables, you set the events, monitor the reactions of the module and evaluate the diagnostic buffer.
  • Page 156 Samples Operation: The CPU is in the STOP mode. Open the VAT1 variable table and transfer the control values. Start the CPU (STOP > RUN-P). You can see how the actual position (CAM.ACT_POS), the cam data (CAM.CAM_00_31) and the track signals (CAM.TRACK_OUT) change.
  • Page 157 Samples User Program (FB PROG): The user program accesses the data in the module-specific data blocks with the form <blockname>.<symbolic name>. This means that the user program can operate exactly one module. The DB numbers specified when the user program is called are simply passed on to supply FC CAM_CTRL and FC CAM_DIAG.
  • Page 158 Samples 12.10 Sample Program 4 “Interrupts” Aim: This sample contains a user program with the same task as in sample program 3 “OneModule”. In this sample, we will show you how to evaluate a diagnostic interrupt for certain modules and how to process this in the user program to produce a general module error.
  • Page 159 Samples User Program (FB PROG): The task is the same as in the sample program 3 “OneModule”. The block was, however, extended by adding evaluation of the diagnostic event. In this sample, no special measures have been taken for restarting after eliminating the error.
  • Page 160 Samples 12.11 Sample Program 5 “MultiModules” Aim: This sample contains the same user program as sample program 3 “OneModule”, however it is used to operate two modules with different cam parameters. The same copy of the user program is used for both modules. Naturally, each module has its own set of data blocks.
  • Page 161 Samples User Program (FB PROG): The aim and sequence of the user program are as in sample program 4 “Interrupts” and in sample program 3 “OneModule”. The user program is designed for the operation of more than one module since it accesses the module-specific data blocks indirectly (channel DB, diagnostic DB, and parameter DB).
  • Page 162 Samples FM 452 Electronic Cam Controller 12-16 C79000-G7076-C452-04...
  • Page 163 Technical Specifications General Technical Data The following technical data are described in the installation manual S7-400/M7-400 Programmable Controllers, Hardware and Installation . Electromagnetic compatibility Transport and storage conditions Mechanical and climatic ambient conditions Details on insulation tests, class and level of protection. UL/CSA Approvals The following approvals exist for the S7-400: UL Recognition Mark...
  • Page 164 “Electromagnetic Compatibility” and the harmonized European standards (EN) listed in them. The EU declarations of conformity are kept according to the above-mentioned EU Directive, Article 10 for the responsible authorities at: Siemens Aktiengesellschaft Bereich Automatisierungstechnik A&D AS E4 Postfach 1963...
  • Page 165 Technical Specifications Technical Data Dimensions and Weight Dimensions W D (mm) Weight Approx. 650 g Current Consumption and Power Current consumption (from the backplane bus) max. 500 mA Power dissipation Typ. 8.1 W Current consumption for encoders, digital inputs max. 40 mA (front connector: pin 3, 26, 36) and outputs from 1L+, 2L+ and 3L+ (without load) Supply of digital inputs and outputs Supply voltage: 24 VDC...
  • Page 166 Technical Specifications Encoder Inputs Position Detection Incremental Absolute Signal voltages Symmetrical inputs: 5 V to RS 422 Asymmetrical inputs: 24 V/typ. 9 mA Input frequency and cable length for symmetrical Max. 1 MHz for 32 m shielded cable length incremental encoders with 5 V supply Input frequency and cable length for symmetrical Max.
  • Page 167 Technical Specifications Digital Outputs Number of outputs Electrical isolation Status indication Yes, green LED per channel Output current 0 signal: 0.5 mA 1 signal: 0.5 A (Permissible range: 5...600 mA) Lamp load: 5 W 1 signal: max. 150 µs Output delay for output current 0.5 A 0 signal: max.
  • Page 168 Technical Specifications FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 169 Section Connection Diagram Connecting Cable Remark Page Incremental encoder 0.25 + 2 1 mm =5V, RS 422 Siemens 6FX 2001-2 Incremental encoder 0.5 mm =24V, RS422 Siemens 6FX 2001-2 Incremental encoder 0.5 mm =24V, HTL Siemens 6FX 2001-4 Absolute encoder 0.5 mm...
  • Page 170 Connection Diagrams Connection Diagram for Incremental Encoder Siemens 6FX 2001-2 (U =5V; RS 422) Connection Diagram The following schematic shows the connection diagram for the incremental encoder Siemens 6FX 2001-2 (U =5 V: RS422): Encoder FM 452 Ground 12-pin circular socket...
  • Page 171 Connection Diagrams Connection Diagram for Incremental Encoder Siemens 6FX 2001-2 (Up=24V; RS 422) Connection Diagram The following illustration shows the connection diagram for the incremental encoder Siemens 6FX 2001-2 (U =24 V; RS 422): Encoder FM 452 Ground Circular 12-pin socket...
  • Page 172 Connection Diagrams Connection Diagram for Incremental Encoder Siemens 6FX 2001-4 (Up=24V; HTL) Connection Diagram The following illustration shows the connection diagram for the incremental encoder Siemens 6FX 2001-4 (Up=24 V; HTL): Encoder FM 452 Ground Shield to Shield to Circular 12-pin socket...
  • Page 173 Connection Diagrams Connection Diagram for Absolute Encoder Siemens 6FX 2001-5 (Up=24V; SSI) Connection Diagram The following illustration shows the connection diagram for the absolute encoder Siemens 6FX 2001-5 (Up=24 V; SSI): Encoder Ground Circular 12-pin socket Siemens 6FX 2003–OCE12 Pin side (soldered side)
  • Page 174 Connection Diagrams FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 175 Data Blocks/Error Lists Chapter Overview Section Contents Page Content of the Channel DB Content of the Parameter DB C-10 Data and Structure of the Diagnostic DB C-12 Error Classes C-15 FM 452 Electronic Cam Controller C79000-G7076-C452-04...
  • Page 176 Data Blocks/Error Lists Content of the Channel DB Note Do not modify data that are not listed in this table. Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Addresses/Version Switch MOD_ADDR (enter!) Module address CH_NO Channel number (always 1) 10.0 PARADBNO...
  • Page 177 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Return signals 30.0 TRACK_OUT DWORD DW#16#0 Current track signals tracks 0 to 31 Bit 0 = track 0 Function Switches 34.0 EDGE_ON BOOL FALSE 1 = edge detection on 34.1 SIM_ON...
  • Page 178 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Trigger Bits for Read Jobs 37.1 MDRD_EN BOOL FALSE 1 = read machine data 37.2 CAM1RD_EN BOOL FALSE 1 = read cam data 1 (cam 0 to 15) 37.3 CAM2RD_EN...
  • Page 179 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Done Bits for Write Jobs 41.0 MDWR_D BOOL FALSE 1 = “write machine data” job completed 41.1 MD_D BOOL FALSE 1 = “enable machine data” job completed 41.2 AVALREM_D BOOL...
  • Page 180 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Done Bits for Read Jobs 44.5 ENCVAL_D BOOL FALSE 1 = “read current encoder value” job completed 44.6 CAMOUT_D BOOL FALSE 1 = “read cam and track data” job completed Error Bits for Function Switches 46.0...
  • Page 181 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Error Bits for Read Jobs 49.1 MDRD_ERR BOOL FALSE 1 = error in “read machine data” job 49.2 CAM1RD_ERR BOOL FALSE 1 = error in “read cam data 1” job 49.3 CAM2RD_ERR BOOL...
  • Page 182 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Data for “Change Cam Edges” Job 108.0 CAM_END DINT Cam end Data for the “Length Measurement/Edge Detection” Job 112.0 BEG_VAL DINT Initial Value 116.0 END_VAL DINT End value...
  • Page 183 Data Blocks/Error Lists Table C-1 Content of the Channel DB Address Name Type Initial Comment Value Relative Address +1.1 C_CBEGIN BOOL FALSE 1 = change the cam start to the value CBEGIN (new cam start) +1.2 C_CEND BOOL FALSE 1 = change the cam end / on time to the value CEND (new cam end) +1.3 C_LTIME...
  • Page 184 Data Blocks/Error Lists Content of the Parameter DB Note Do not modify data that are not listed in this table. Table C-2 Content of the Parameter DB Address Name Type Initial Value Comment Machine data PI_MEND BOOL FALSE 1: Enable hardware interrupt: Measurement PI_CAM BOOL FALSE...
  • Page 185 Data Blocks/Error Lists Table C-2 Content of the Parameter DB Address Name Type Initial Value Comment Machine data 90.0 TRACK_OUT WORD W#16#0 Control of track outputs: 0 = cam controller, 1 = CPU; Bit number = track number 95.0 EN_IN_I3 BOOL FALSE Enable input I3...
  • Page 186 Data Blocks/Error Lists Data and Structure of the Diagnostic DB Note Do not modify data that are not listed in this table. Table C-3 Structure of the Diagnostic DB Address Name Type Initial Value Comment MOD_ADDR Module address (enter!) 256.0 JOB_ERR Communication error 258.0...
  • Page 187 Data Blocks/Error Lists Table C-4 Structure of the Diagnostic Entry Address Name Type Initial Value Comment +6.0 CH_NO Channel number (always 1) +8.0 CAMNO Cam number 0 to 127 for error class = cam data errors List of JOB_ERR Messages JOB_ERR JOB_ER JOB_ER...
  • Page 188 Data Blocks/Error Lists 8544 34116 -31420 Error in nth (n > 1) read access to a DB after error occurred. (write job) 8723 34595 -30941 Channel DB or parameter DB too short. The data cannot be written to the DB. (read job) 8730 34608 -30928...
  • Page 189 Data Blocks/Error Lists Error Classes Class 1: Operating Errors Operating errors are detected asynchronous to operator input/commands. Meaning Diagn. Interrupt Software limit switch start passed Software limit switch end passed Travel range start passed Travel range end passed Set actual value on-the-fly cannot be executed Cause The software limit switches are outside the travel range (-100m...+100m or -1000m...+1000m) after the set...
  • Page 190 Data Blocks/Error Lists Meaning Diagn. Interrupt Activate machine data not permitted Cause There are no new (error-free) machine data on the module Set actual value on-the-fly not permitted Cause An attempt was made to execute “set actual value on-the-fly” while “retrigger reference point” was active. Illegal bit-coded setting Cause Unused and, in this case, unwritten bits are not 0.
  • Page 191 Data Blocks/Error Lists Meaning Diagn. Interrupt Bad actual value specified for set actual value / set actual value on-the-fly Cause The specified actual value is outside the permitted numeric range of 100 m or 1000 m. The software limit switches would be outside the travel range (-100m...+100m or -1000m...+1000m) after making the setting.
  • Page 192 Data Blocks/Error Lists Class 5: Machine Data Errors The diagnostic interrupt is triggered only when there is an error in the system data block (SDB). Meaning Diagnostic Interrupt Error in hardware interrupt setting You have attempted to select a hardware interrupt that Cause the module does not support.
  • Page 193 Data Blocks/Error Lists Meaning Diagnostic Interrupt Bad type of retrigger reference point You have specified a value other than 0, 1, 6 and 7. Cause Bad direction adaptation You have specified a value other than 0 and 1. Cause Hardware monitoring not possible Cause Bad software limit switch start Linear axis: The software limit switch start is outside...
  • Page 194 Data Blocks/Error Lists Meaning Diagnostic Interrupt Bad upper counter value for track 0 You have specified a counter value < 2 or > 65535 as Cause the upper counter value. Bad upper counter value for track 1 You have specified a counter value < 2 or > 65535 as Cause the upper counter value.
  • Page 195 Data Blocks/Error Lists Class 7: Cam Data Errors The diagnostic interrupt is triggered only when there is an error in the system data block (SDB). Meaning Diagnostic Interrupt Hardware interrupt not permitted You want to specify a hardware interrupt for a cam with Cause a cam number >...
  • Page 196 Data Blocks/Error Lists Class 15: Messages Meaning Diagnostic Interrupt Start of parameter assignment The module has detected a parameter assignment by Cause a system data block. End of parameter assignment The module has processed the parameter assignment Cause by a system data block error-free. FM 452 Electronic Cam Controller C-22 C79000-G7076-C452-04...
  • Page 197 Data Blocks/Error Lists Class 128: Diagnostic Errors Meaning Diagnostic Interrupt External auxiliary voltage missing Cause External auxiliary supply not connected or failed. Effect See Page 11-4 Cam processing switched off Track outputs are switched off With incremental encoders, synchronization is deleted.
  • Page 198 Data Blocks/Error Lists Meaning Diagnostic Interrupt Hardware interrupt lost Cause A hardware interrupt event has been detected by the FM 452 and cannot be signaled since the same event has not yet been processed by the user program/CPU. Effect Cam processing switched off Track outputs are switched off With incremental encoders, synchronization is deleted.
  • Page 199 Data Blocks/Error Lists Meaning Diagnostic Interrupt Frame error absolute encoder Cause The frame traffic between FM 452 and the absolute encoder (SSI) is erroneous or interrupted: Encoder cable cut or not plugged in. Incorrect encoder type Encoder incorrectly set (programmable encoders) Frame length incorrectly specified Encoder supplies incorrect values (encoder defective)
  • Page 200 Data Blocks/Error Lists FM 452 Electronic Cam Controller C-26 C79000-G7076-C452-04...
  • Page 201 Index Block templates, 6-2 Bounce-free switch, 9-15 Absolute encoder, 8-8 Brake cam track, 2-7, 8-24 data transfer, 10-6 frame run time, 10-8 increments per encoder revolution, 8-17 Monostable flip-flop time, 10-8 pulse evaluation, 10-6 C_CBEGIN, 9-13 reaction times, 10-8 C_CEND, 9-13 Absolute encoder adjustment, 8-12 C_EFFDIR, 9-13 alternative, 8-14...
  • Page 202 Index Cam data error, C-21 Counted values of the counter cam tracks Cam data in the parameter DB, 8-27 data used in the channel DB, 9-25 Cam deactivation, condition, 2-3 data used in the parameter DB, 9-25 Cam end, 8-28 sequence, 9-25 Cam parameter change, 9-13 Counter cam track, 2-6, 2-10, 8-24...
  • Page 203 Index Digital input, 4-3 Encoder data, 9-27 Digital output, 4-4 data used in the channel DB, 9-27 DIR_M, 9-23 requirements, 9-27 DIR_P, 9-23 sequence, 9-27 Direct access to return signals, 6-21 Encoder range, 8-9 Direction detection, 2-2 Encoder supply, polarity, 4-5 Direction of movement, 2-2 Encoder type, 8-15 Direction-dependent cam, 2-2...
  • Page 204 Index FC CAM_CTRL, 6-5 call, 6-5 Ground connection, 4-6 call parameters, 6-7 Group errors, 11-3 data used, 6-5 response to errors, 6-9 return values, 6-7 tasks, 6-5 FC CAM_DIAG, 6-10 Hardware installation, 7-2 call, 6-10 Hardware interrupt, 8-25 data used, 6-10 evaluation, 6-17 parameter, 6-10 lost, 6-18...
  • Page 205 Index Interrupt handling, 6-17 Machine data, 8-1 INTF, 11-3 absolute encoder adjustment, 8-12 activating, 8-2, 8-3 activation of the track outputs, 8-23 axis, 8-7 axis type, 8-7 Job, execute, 6-5 baudrate, 8-18 Job management for FC CAM_CTRL, C-7 changing, 8-2 Job management for FC CAM_MSRM, C-7 count direction, 8-19 Job status, 6-8...
  • Page 206 Index Module cycle, 6-19 Polarity protection, A-3 Module data, fast access, 6-21 Position and track data, 9-26 MON_FRAME, 8-19 data used in the channel DB, 9-26 MON_PULSE, 8-19 sequence, 9-26 MON_WIRE, 8-19 Position detection, A-4 Monitoring, 8-19 Power controller, 1-4 Motor, 1-5 Power dissipation, A-3 MSR_DONE, 9-17...
  • Page 207 Index Samples, using, 12-3 Start software limit switch, 8-9 Set actual value, 9-3, 9-5 Status displays, 11-3 data in the channel DB, 9-4 Step train frequency, 10-9 effects, 9-4 Switching behavior, 7-3 requirements, 9-3 Switching response, of time cams, 9-2 sequence, 9-3 Symmetrical output signals, 10-2 Set actual value on-the-fly, 9-3...
  • Page 208 Index Validity of the Manual, iii Zero offset canceling, 9-8 data used in the channel DB, 9-6 definition, 9-6 effects on a linear axis, 9-7 Wire break, 8-19 sequence, 9-6 Wiring, 4-1 with a rotary axis, 9-8 for 24 V DC, 4-5 ZOFF_EN, 9-6 the front connector, 4-5 ZOFF, 9-6...
  • Page 209 Siemens AG A&D AS E 81 Oestliche Rheinbrueckenstr. 50 D-76181 Karlsruhe Federal Republic of Germany From: Your Name: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...
  • Page 210 Your comments and recommendations will help us to improve the quality and usefulness of our publications. Please take the first available opportunity to fill out this questionnaire and return it to Siemens. Please give each of the following questions your own personal mark within the range from 1 (very good) to 5 (poor).

Table of Contents