Ascon tecnologic CU-02 Скачать руководство пользователя страница 31

Chapter 4 -

 Programming the CPU

25

4-6

CANopen Extension for Ascon 

sigma

due CPU

4-6-1

Introduction

sigma

due

 is a system based on two main concepts: the CANopen technology and 

the IEC61131 standard languages.  The integration of these two different worlds is 
performed by:

• Use of networked variables;
• Direct access to CANopen parameters and functions via predefined low level 

communication function blocks.  CANopen services for CPU programs according 
to the IEC61131-3 standard are defined in the CiA (CAN in Automation e.V.) 

 

Draft Standard 405;

• Use of Ascon IO Library.

Using 

Networked 

Variables

Networked variables are the easiest way of data exchange in a CANopen network 
system.  Within the CPU, program access to the network variables occurs in the 
same way as access to internal, local variables on the CPU.  From the point of view 
of a CPU programmer it is unimportant whether a input variable is assigned to a 
local input on the CPU device or to an input on a networked expansion device.  The 
use of networked variables only requires basic knowledge of CANopen. In general, 
a CANopen configuration tool as well as the availability of EDS files for the individ-
ual CANopen devices are required for integrating network variables into a CPU.

With the help of network variables it is possible:

• to expand the number of inputs and outputs on the PLC using distributed 

CANopen I/O devices;

• to exchange process data between various control units, thus realizing decen-

tralized automation control projects;

• to integrate other special CANopen devices from third party vendors into a 

complex control project and furthermore to build very specific automation con-
trol systems using modular components in addition to Ascon 

sigma

due

 CAN-

open IO modules.

For a detailed description see 

[3]

 and

 

[4]

.

Using 

CANopen 

Function blocks

CANopen function blocks enable direct access to specific CANopen services, thus 
offering a high degree of flexibility in the target application.  Furthermore, using 
these function blocks does not require an additional CANopen configuration tool or 
EDS files.  However, using the CANopen function blocks assumes that the user 
has detailed knowledge about CANopen and its services.

With the help of CANopen function blocks it is possible:

• to directly exchange data with other CANopen nodes via SDO (Service Data 

Object) or PDO (Process Data Object);

• to enquire and change the state of other CANopen nodes;
• to receive error messages from other CANopen nodes;
• to allow generation of SYNC messages.

For a detailed description see 

[3]

 and

 

[4]

.

Using 

Ascon I/O 

Library

The function blocks present in the Ascon IO Library enable the access to Ascon 

sigma

due

 CANopen IO modules, providing services that allow the CPU program-

mer to do not deal with the fieldbus directly.  To provide this level of abstraction, 
the function blocks are based on those described above.

With the help of the function blocks present in the library is possible:

• to directly exchange data with all 

sigma

due

 CANopen module;

• to setup all the module’s functionalities;
• to enquire and see the state of the modules;
• to reset the module.

For a detailed description see 

[11]

 and

 

[12]

.

Содержание CU-02

Страница 1: ...sigmadue Control Unit CU 02 User Manual M U CPU CB CU 02 5 14 04 Cod J30 478 1A CU02 E...

Страница 2: ...gic reserves the right to change such information without notice Ascon Tecnologic makes no warranty of any kind expressed or implied with regard to the documentation contained in this manual Ascon Tec...

Страница 3: ...232 Serial Communications Connection 7 3 1 2 USB Serial Communications Connection 8 3 1 3 Setting the Communications Parameters of the CPU RS232 Service Port 8 3 1 4 Entering the Setup Menu 9 3 2 Main...

Страница 4: ...dog Timer 24 4 6 CANopen Extension for Ascon sigmadue CPU 25 4 6 1 Introduction 25 Chapter 5 CPU TFTP File Access 27 5 1 TFTP Protocol Access 27 5 2 IEC61131 3 OpenPCS Runtime Errors log file 28 Chapt...

Страница 5: ...words within the text indicate markings found on the equipment Words in bold style within the text indicate markings found in the Configuration Tools Warnings Cautions and Notes are used to emphasize...

Страница 6: ...ake sure you are always working with the latest version of this document Ascon Tecnologic Srl reserves the right to make changes to its products in the name of technological advancement New manual rev...

Страница 7: ...s a clearly structured easily operated tool for editing compiling debugging managing and printing PLC applications in all the development phases OpenPCS supports EN61131 3 programming under Windows se...

Страница 8: ...etwork to the distributed I O The Ethernet port TCP IP will be used for the connection through a LAN network to the PC with the Infoteam OpenPCS environment for Programming Debuging and commissioning...

Страница 9: ...X1 RS232 or USB Optional Communications expansion port CAN Connector X0 CANopen A Connector Ethernet 10 Base T port X2 Wake UP output terminals 1 2 Alarm output terminals 3 4 Digital Input terminal 5...

Страница 10: ...needs to reboot in order to create the dedicated files The error indication will disappear automatically Sequence Meaning OFF the LED is not lit Steady ON the LED is lit in a stable way Blinking the...

Страница 11: ...ion Ports Control Unit CU 02 Installation Manual 6 for details 2 2 1 Connect the communication cables CANopen remote I O Port For CANopen I O modules connection X0 I O modules are connected with the i...

Страница 12: ...e activated Digital Output 24Vdc 0 2A high side power switch terminals 1 and 2 Alarm Relay type digital output SPST NO 24V 1A terminals 3 and 4 DI 24Vdc digital Input terminal 6 The return path can be...

Страница 13: ...s Run the communications program 3 1 1 RS232 Serial Communications Connection In order to connect a VT100 terminal or a PC with Hyper Terminal program install an RS232 cable having the following chara...

Страница 14: ...to the PC with the USB cable the user must configure the HyperTerminal in order to communicate with the USB port The number of the COM port linked to the USB connector can be found in Start ControlPa...

Страница 15: ...CR character the welcome screen appears Press ENTER again to reach the configuration session Main Menu Main Menu Figure 3 1 CPU configuration Main Menu Please note that the system has a further timeo...

Страница 16: ...r the CAN port Ethernet Setup To set the parameters for the Ethernet port Serial Setup To set the parameters for the RS232 port Exit To exit this menu and return to the previous menu 3 2 2 CPU Setup M...

Страница 17: ...d if they are working well or there is a problem Enable Sync It is possible to set the Sync communications process data objects on the CAN network are exchanged when a sync message occours Sync time G...

Страница 18: ...Address To set the IP Address of the device Subnet Mask To set the subnet mask of the device VALUE Meaning 0 Normal status 1 Data Configuration Error DCE 2 Retain Error RE 3 Data Configuration Errorr...

Страница 19: ...der to avoid communications problems 3 2 6 Serial Setup Menu Figure 3 7 Serial Setup Menu Baudrate This choice allows the user to set the baud rate for the RS232 commu nications port The correspondenc...

Страница 20: ...meout DO1 used by watchdogIf enabled the digital output DO1 could be connected to a software function block to signal a watchdog event Exit To exit this menu and return to the previous one To change t...

Страница 21: ...ny program at startup time Selecting the item Erase PLC program the retentive memory area reserved to store PLC programs is erased This activity take some seconds When the Persistency setup menu scree...

Страница 22: ...us agent Slave 1 and Slave 2 and up to 16 kB in the marker area In particular the range of registers available as retentive are Modbus Slave 1 MW1128 0 MW9320 0 Modbus Slave 2 MW10128 0 MW18320 0 Mark...

Страница 23: ...iables using a TFTP session The timeframe window to perform this operation is available only during the boot up phase before the configuration access To upload or download the retentive mem ory files...

Страница 24: ...performs in sequence the following steps 1 At each received messages the timeout is zeroed 2 In the case that the programmed timeout is reached a probe message is sent in order to verify if the connec...

Страница 25: ...connections at the same time When a new connection request arises and all available connections are engaged the system shall make a choice Since every new request must be satisfied one of the present...

Страница 26: ...Sigmadue sigmaPAC CU 02 User manual 20...

Страница 27: ...file available in X SETUP folder X is the letter assigned to the CD ROM drive in your PC At the end of the installation you will be asked if you want to install hardware drivers If you received driver...

Страница 28: ...he desired cabinet e g Ascon_sigmadue_2009 cab then Install Figure 4 1 OpenPCS OEM Driver Installation 4 2 OpenPCS Setup To connect the OpenPCS development system to the Ascon target a new connection...

Страница 29: ...e Optimization menu allows for three choices of compilation Normal and Speed only refers to the NCC Native Code Compilation while Size only refers to the standard code Please note that the use of NCC...

Страница 30: ...en the count value reaches zero two different behaviours of the system may occur depending on how the configuration is PLC program keeps working stores the event and force the Alarm relay to OPEN PLC...

Страница 31: ...automation control projects to integrate other special CANopen devices from third party vendors into a complex control project and furthermore to build very specific automation con trol systems using...

Страница 32: ...Sigmadue sigmaPAC CU 02 User manual 26...

Страница 33: ...commands are To GET a file from the MP01 tftp i remote host address get remote file_name local file name To PUT a file to the MP01 tftp i remote host address put local file name remote file_name For...

Страница 34: ...LzsNetInvalidNodeID 1503 kLzsInvalidPgm 1004 kLzsNetVarCfgError 1504 kLzsDwnldError 1005 kLzsNetNIOverflow 1505 kLzsConfigError 1006 kLzsInvalidModCfg 1007 kLzsStoreProgInFLash 2000 kLzsInvalidPgmNr 1...

Страница 35: ...brary 11 manual for details Note These are system Function Blocks 6 2 AT_IO_Modules_Basic_Lib The AT_IO_Modules_Basic_Lib is a library that allows the OpenPCS programming environment to access the Asc...

Страница 36: ...08DP bAO08HL FB to interface the module AO 08HL bAO08DP FB to interface the module AO 08DP bERRORSTATEAN FB to manage the communications error statuses for analogue output modules bERRORSTATEDIG FB to...

Страница 37: ...al Multiplexer 8 Input MUX_D16 Digital Multiplexer 16 Input RESCALE Rescaling Function Block POWER_FAIL Power Fail Condition Monitor SLOPE_LIMIT Slope Limiter TIMER_ADV Advanced countdown timer functi...

Страница 38: ...conversion and management of 8 REAL write values MB_MST_WR8_UDINT Modbus Master conversion and management of 8 UDINT write values MB_SLV_RD8_DWORD Modbus Slave reading of 8 DWORD values MB_SLV_RD8_REA...

Страница 39: ...ial functions Pulse Output DO_04TX_STD Transfer 4 discrete Outputs CPU module DO_04TX_PULSE Manage the module s Output special functions Pulse Output DO_08RL_STD Transfer 8 relay Outputs CPU module DO...

Страница 40: ...discrete input states module CPU and transfer 16 discrete Outputs CPU module RPDO Receive a PDO from the CANopen network WPDO Send a PDO on the CANopen network Function Block name Description Functio...

Страница 41: ...transfer CAN_PDO_WRITE8 Function block for sending PDOs and CAN Layer 2 messages throught the network layer CAN_RECV_BOOTUP Function block for the Bootup messages of any node from the network layer s...

Страница 42: ...ation of a connection identified by the IP address of the client MB_TCP_GET_CONN_CONFIG Return configuration data of a specified active connection MEMCOPY_FROM_M Copies data from M memory areas MEMCOP...

Страница 43: ...fic digital input RTC_SETUP Set the system clock RTC_GET_VALUES Read the system clock RS Reset dominant Flip Flop SR Set dominant Flip Flop SEND_EMAIL Set the configuration for a client SMTP to send e...

Страница 44: ...Sigmadue sigmaPAC CU 02 User manual 38...

Страница 45: ...1 CANopen application layer and communication profile 6 CU 02 Installation manual code J30 658 1ACU 02 E 7 CU 02 User manual code J30 478 1ACU02 E 8 sigmadue I O modules Installation Manuals DI 16LV D...

Страница 46: ...Sigmadue sigmaPAC CU 02 User manual 40...

Отзывы: