background image

Festo control block CPX-CEC 

4.12.5  Carrying out configuration 

1.  In the task configuration, open the task responsible for executing the function blocks that generate the 

movement. 

 

In the following steps, the task containing the function blocks that generate the movement is 
called "MotionTask". 

 

2.  Make sure that the priority of the "MotionTask" is set to a real-time priority. 

 

Real-time priorities are in the range from 0 to 15. Priorities > 15 are non-real-time priorities. 

 

3.  Set the task type to "External" and the external event to "CANopen_SYNC". 

 

Figure: Configuring the MotionTask 

 

4.  Add a CANbus node to the CPX-CEC- ... -V3 in the device tree. 

5.  Open the CAN bus node in the device tree and set the baud rate. 

 

Figure: Configuring the CAN bus 

 

6.  Add a CANopen_Manager to the CAN bus node. 

7.  Open the CANopen_Manager. 

8.  Check the "Enable Sync Producing" box and define the cycle time in the "Cycle Period (µs)" field. 

 

This cycle time is used for producing the sync and for the "MotionTask" cycle time (

 step 3). 

 

42 

Содержание CPX-CEC-C1-V3

Страница 1: ...8042601 en 1411c 8042603 Terminal CPX Control block CPX CEC C1 V3 M1 V3 S1 V3 Description Codesys Controller...

Страница 2: ......

Страница 3: ...ess http www gnu org copyleft gpl html Internal CPX CEC V3 web server http IP address of the device cgi bin system about Festo AG CO KG D 73726 Esslingen 2014 Internet http www festo com E Mail servic...

Страница 4: ...ntroller Fieldbus operating mode 9 3 Installation 10 3 1 General information 10 3 2 Mounting and removal 11 3 2 1 Removal 11 3 2 2 Mounting 11 3 3 Connection and display components 12 3 4 Setting the...

Страница 5: ...s Modbus TCP client master 45 4 13 2 CPX CEC V3 as Modbus TCP slave device 50 4 14 Online mode 51 4 14 1 Login 51 4 14 2 Starting and monitoring the application 53 4 14 3 Logout 53 4 15 Forcing 54 4 1...

Страница 6: ......

Страница 7: ...ial applications interference suppression measures may be required outside of industrial environments e g in residential and mixed use areas In original condition without unauthorised modifications on...

Страница 8: ...uators Use only power supplies that guarantee reliable electrical isolation of the operating voltage to IEC DIN EN 60204 1 Observe also the general requirements for PELV power circuits as per IEC DIN...

Страница 9: ...additionally marked with a pictogram A distinction is made between the following danger warnings Warning means that serious injury to people and damage to property can occur if this warning is not hee...

Страница 10: ...mation The manual refers to the following versions Codesys controller CPX CEC V3 Revision 01 and later CODESYS V3 pbF programming environment with CPX CEC package The manual contains information on th...

Страница 11: ...ocess visualisation within Codesys using a display and operator unit CDPX and the Software Designer Studio available separately use of the OPC server for connecting to an OPC client or use of the web...

Страница 12: ...ey are automatically shared based on the variable declaration within the application The following sample combinations for distributing the remanent memory are possible RETAIN variable PERSISTENT RETA...

Страница 13: ...ary For configuring motor controllers from Festo e g CMMP AS Festo_FHPPMAX_3 library Festo profile FHPPMAX Festo_CPX CMAX_3 library For controlling and parameterising the Festo axis controller CPX CMA...

Страница 14: ...Remote Controller Fieldbus fieldbus node required The individual operating modes are described briefly below 2 5 1 Standalone operating mode 1 CPX CEC V3 2 CPX terminal controlled by CPX CEC V3 Stand...

Страница 15: ...Fieldbus operating mode 1 CPX CEC V3 for communication via the fieldbus node connected to the fieldbus 2 CPX fieldbus node in this case CPX FB13 3 CPX terminal controlled by CPX CEC V3 Remote Controll...

Страница 16: ...ations for electrostatically sensitive devices Note The controller CPX CEC V3 only supports single channel switch off All inputs and outputs are de energised when the power supply is switched off Note...

Страница 17: ...l the device carefully and without tilting away from the contact rails 3 of the manifold sub base 2 3 2 2 Mounting Note Mount the device at the left hand end position of the CPX terminal position 0 1...

Страница 18: ...on DIL switches 2 RUN STOP rotary switch 6 DIL switch 2 section DIL switches 3 Ethernet interface 10 100BaseT RJ45 7 Connection for handheld CPX MMI 4 CPX CEC C1 V3 M1 V3 CANopen interface plug 9 pin...

Страница 19: ...osition Setting Meaning 0 STOP Codesys controller stopped The STOP LED lights up yellow 1 F RUN Codesys controller started The RUN LED lights up green Factory setting 1 Table Switch positions of the R...

Страница 20: ...uring protection to IP65 IP67 Ethernet cable Use connecting cables with the following specification Screened flexible Ethernet round cable from category 5 Max outside diameter 5 4 mm Core diameter 0 8...

Страница 21: ...slaves with voltage Note Use a protective cap or blanking plug to seal unused connections This provides protection to IP65 IP67 section Ensuring protection to IP65 IP67 Connecting CANopen slaves Note...

Страница 22: ...prevent equalising currents flowing through the screen of the CAN bus Clamp the screen under the clamp strap of the CAN bus plug accompanying manual for the CAN bus plug Appropriate CAN bus plugs ada...

Страница 23: ...cables reduce interference immunity Make sure that the signal cable is not longer than 30 m 3 5 4 Power supply The power for the device is supplied via the manifold sub base The device is supplied via...

Страница 24: ...the accompanying user documentation when installing the device Figure CPX CEC V3 with operator unit CDPX Connect the CDPX to the CPX CEC V3 directly via the Ethernet interface or indirectly via a swit...

Страница 25: ...for handheld CPX MMI Further information section Parameterisation using the handheld CPX MMI General information on the CPX MMI can be found in the manual P BE CPX MMI 1 3 8 Ensuring protection to IP...

Страница 26: ...software Filename Contents CODESYS Installation and Start pdf Getting started with the Codesys programming system English CoDeSys_OPC_Server_V3_User_Guide pdf Documentation for OPC Server V3 installat...

Страница 27: ...on and confirm your entries by clicking OK Figure New Project dialog 4 4 2 Selecting a device 1 Select the relevant device in the CPX CEC Project dialog Check the Show all device versions box for an e...

Страница 28: ...grey and cannot be selected The Codesys program window opens with the newly created project 1 Device window with CPX CEC V3 its interfaces and PLC logic 2 Editing window with tabs for the objects act...

Страница 29: ...section Selecting a device If necessary change the sorting sequence to alter how the devices are displayed in the updated list Manually select a device if you know the name node address or IP address...

Страница 30: ...al gateway 2 Click the Add device button Figure Add device dialog 3 Enter the name node address or IP address of the device to be connected in the Add device dialog and confirm your entries by clickin...

Страница 31: ...vice The currently active path is shown in bold in the list and active is appended to the name Figure Activated device 4 5 Scan Festo Devices To launch the scan program Scan Festo Devices 1 Click the...

Страница 32: ...rties dialog 3 If necessary change the IP address 4 If necessary change the settings for the subnet mask standard gateway and DNS server 5 Transfer the changes to the device To do this click OK 6 Wait...

Страница 33: ...ode automatically section Automatically reading in the configuration or manually section Manual configuration 4 6 1 Configuration by entering the order code 1 Double click the CPX_System node in the D...

Страница 34: ...ual configuration function on the Module Configuration tab 3 Execute the Scan function 4 Click Apply to transfer the result to the device configuration Figure Automatic scanning function for the actua...

Страница 35: ...lternatively you can also address the inputs and outputs manually 3 Save the project and close the dialog by clicking Close Addressing settings The I O addresses are automatically assigned by Codesys...

Страница 36: ...Festo control block CPX CEC Figure Changing the I O address manually Check the Always update variables box 30...

Страница 37: ...an be found in the user documentation for the respective modules The following parameterisation options are available Parameterisation via Description Properties Module configuration in Codesys offlin...

Страница 38: ...tion tab contains information about the settings for the CPX system and the diagnostic memory trace parameters Note Changes are only transferred to the controller system and only come into effect afte...

Страница 39: ...et all outputs to default Execute program Figure PLC system settings The setting of specific values in stop mode can therefore be achieved via the Execute program option Note General I O settings in s...

Страница 40: ...mode Select a module in the device tree Figure CPX module selection The Module Configuration tab contains information about the settings for the CPX module Note Changes are only transferred to the con...

Страница 41: ...d from module function 2 Change the values of the individual parameters 3 Save the changes using the Write to module function or log into the controller 4 Generate a boot project if required so that t...

Страница 42: ...k CPX CEC Module errors are displayed on the Status tab in online mode Figure CPX module status Information about the module available electronically is displayed on the Information tab Figure CPX mod...

Страница 43: ...ormation on parameterisation via CPX MMI can be found in the manual P BE CPX MMI 1 4 10 Rotary switch settings The rotary switch is permanently assigned to a variable on the Onboard Bus I O Mapping ta...

Страница 44: ...aud rate is opened by double clicking the CAN branch in the Codesys device window 4 11 1 Adding a CANopen slave 1 Highlight the CANopen_Manager branch in the Codesys device window Figure Device window...

Страница 45: ...minal CPV CO2 section Integrating CPV terminals 6 Close the dialog by clicking the Close button 7 Highlight the added CANopen slave in the device window Figure Device window selecting FB14 8 Double cl...

Страница 46: ...dding a CANopen slave step 3 1 Highlight the CANopen slave CO2 in the device window 2 Open the Add Device dialog menu command Project Add Device or context menu Add Device 3 Select one of the followin...

Страница 47: ...the actual cycle time in the SoftMotion program We recommend operating up to 8 axes on a CPX CEC M1 V3 4 12 3 Cycle time interpolation time Different cycle times must be observed depending on the conn...

Страница 48: ...s are in the range from 0 to 15 Priorities 15 are non real time priorities 3 Set the task type to External and the external event to CANopen_SYNC Figure Configuring the MotionTask 4 Add a CANbus node...

Страница 49: ...ime on the CANopen I O Mapping tab Figure Configuring the bus cycle task 10 Add SoftMotion drives to the CANopen_Manager e g CMMP_AS_C2_3A_M3_SoftMotion Virtual drives can be added to the SoftMotion G...

Страница 50: ...tion drives on the SoftMotion Drive Basic tab Figure Configuring the basic parameters 13 Configure the scaling factors for the individual SoftMotion drives on the SoftMotion Drive Scaling Mapping tab...

Страница 51: ...CEC V3 by means of a further CPX CEC V3 via Modbus TCP 4 13 1 CPX CEC V3 as Modbus TCP client master 1 Highlight the Device CPX CEC branch in the Codesys device window 2 Open the Add Device dialog me...

Страница 52: ...Master in the Ethernet branch 7 Highlight the new Modbus TCP Master branch and add the Modbus TCP Slave module using the context menu 8 Repeat this process for the other Modbus TCP slaves Figure Devic...

Страница 53: ...ication cannot take place 12 Enter the port for the Modbus TCP slave To configure the I O mapping appropriate channels must be added Figure Workspace for Modbus TCP Slave adding a channel 13 Click the...

Страница 54: ...Festo control block CPX CEC Figure Settings on channel 1 Figure Settings on channel 2 48...

Страница 55: ...r the slave Figure Modbus TCP Slave I O Mapping tab If the timeout option is activated and if this has a value greater than zero the holding register values IW are automatically reset after this time...

Страница 56: ...Slave in the Ethernet branch 2 Highlight the branch of the device being parameterised as a Modbus TCP Slave Device Several tabs for parameterising the selected Modbus TCP Slave Device are displayed i...

Страница 57: ...tion ALT F8 Codesys logs in to the CPX CEC V3 connected via the active path in the gateway First a comparison is performed of whether the connected CPX CEC V3 matches the device selected in the projec...

Страница 58: ...e connection to the CPX CEC V3 as well as the application are highlighted in green in the device window The CPX CEC V3 is online the application is not started not running the Run status LED lights up...

Страница 59: ...ainst a green background in the device window run appears after the application CPX CEC V3_Code The circular arrows in front of the various devices of the CPX CEC V3 light up green The application on...

Страница 60: ...ual output signal and can be observed at the relevant status LED However the forced output signal is not transferred to the image table of the outputs The online display in Codesys does not show the f...

Страница 61: ...on Online mode if necessary a temporary connection to the device in the active path is established The target system ID of the controller in the active path must be the same as the device type in the...

Страница 62: ...CEC V3 Diagnosis via Advantages LEDs Fast local error detection using LEDs section Status LEDs Handheld CPX MMI Fast local error detection CPX system manual Codesys Online diagnosis In the diagnostic...

Страница 63: ...llow 1 The RUN and STOP LEDs indicate the status of the RUN STOP rotary switch Figure Status LEDs on the CPX CEC V3 LED Sequence Meaning Error handling RUN PLC status started Lights up green PLC progr...

Страница 64: ...PS power system Lights up green No error Operating voltage sensor supply present Flashes green quickly Operating voltage sensor supply outside the tolerance range Eliminate undervoltage Flashes green...

Страница 65: ...nge Eliminate undervoltage SF system failure Flashes red Minor error class 1 information Description of the error numbers in the CPX system manual Error class 2 Serious error class 3 No error M Modify...

Страница 66: ...s in the controller configuration 5 3 1 Diagnostic messages in PLC diagnosis Diagnostic information is recorded and displayed centrally in PLC diagnosis Select PLC_Diagnosis in the device tree Figure...

Страница 67: ...LC diagnosis Exporting all messages to a CSV file Selection filter for displaying the diagnostic messages Error Warning Information Error number Application 5 3 2 Diagnostic messages on the Log tab Di...

Страница 68: ...in the Scan Festo Devices dialog Diagnostic information is called up in the Scan Festo Devices dialog in the context menu of the selected Festo device using the Diagnosis function Figure Calling up Di...

Страница 69: ...n Drive Basic tab Figure Error message on the SoftMotion Drive Basic tab A list of possible SoftMotion error numbers can be found in the 3S online Help SoftMotion Programming Interface SoftMotion Libr...

Страница 70: ...gram The following Festo libraries can be used for diagnosis in the user program Festo_General_3 General device diagnosis Festo_CPX_3 CPX specific diagnosis Examples and documentation for this functio...

Страница 71: ...g pointers to outputs because Codesys cannot automatically detect which output is being accessed by means of a pointer Referencing this output with the following sample calls is enough to guarantee an...

Страница 72: ...n_Manager tab starts all slaves simultaneously Figure Selecting CANopen_Manager Figure NMT Start All option Note The command NMT Start All is not executed while optional slaves are not yet ready to st...

Страница 73: ...MI are always overwritten by the parameters in the Codesys project when a project is downloaded and a boot project is started 6 5 Data incompatibility between the runtime project and controller If the...

Страница 74: ...X CEC C1 V3 Motion functions for electric drives CPX CEC M1 V3 SoftMotion functions for electric drives CPX CEC S1 V3 RS232 communication function Ethernet protocols EasyIP Modbus TCP TCP IP Ethernet...

Страница 75: ...nal operating voltage 24 V DC Load voltage Without pneumatic components 18 V DC 30 V DC With Midi Maxi pneumatic components 21 6 V DC 26 4 V DC With CPA pneumatic components 20 4 V DC 26 4 V DC With M...

Страница 76: ...YS V3 provided by Festo allows the configuration commissioning and programming of different Festo components and devices It is called Codesys for short in this online Help manual Codesys target system...

Страница 77: ...us data profile for positioning controllers from Festo Handheld CPX MMI Handheld programmer for commissioning and service purposes IP Internet Protocol protocol for addressing and delivering data Modb...

Страница 78: ...rotocol for data transport and backup TCP IP Combination of the protocols TCP and IP the most widely used protocol in communication via Ethernet UDP User Datagram Protocol a minimal connection free ne...

Отзывы: