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

27

Chapter 5 

CPU TFTP File Access

5-1

TFTP Protocol Access

The CU-02 unit allows the user to access to the device using the TFTP (Trivial File 
Transfer Protocol).  With this protocol it is possible to upload or download  device 
configuration, the IEC61131 program, the retained variables and error log files.

 

For security reasons, the name and the number of the accessible files are limited 
and fixed. The following table lists the accessible files:

To connect the unit the user needs the IP address of the device (see 

“ETHERNET 

Setup Menu” on page 12

 for details) and the logic port used, whic is always 

69

 for 

the TFTP. The TFTP protocol has only two different services:

GET

PUT

The GET service allows the user to upload a file from the CU-02 unit, while the 
PUT service allows files to be downloaded.

 

Using the TFTP client present in the Windows installation (please see 

C:\Windows\System32\tftp.exe

) the possible 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 example, if the user wants to GET the configuration file from the CU-02 unit, 
and store it in a local file named “

configuration.bin

”, the command is:

 

tftp -i 192.168.5.11 get /fs1/sys_file configuration.bin

where the IP address of the MP01 is 192.168.5.11.

If the user wants to PUT the IEC61131 program file to the CU-02 unit, using the 
source file “

Sigma2_CU-02.prs

”, the command will be:

 

tftp -i 192.168.5.11 put Sigma2_CU-02.prs /fs1/restore_file

Please note that the application binary file that contains the program compiled 
with OpenPCS is located in the project folder “

project_root/$GEN$/

Resource

” and has always the name “

Sigma2_CU-02.prs

”.

File Name

Description

/fs1/restore_file

Name of the IEC61131 program file

/fs1/sys_file

Name of the configuration file

/fs1/errlog_file

Name of the RUNTIME errors file

/fs2/retain

Name of the classic retained variable file

/fs2/perc_ret

Name of the % retained variable file

Содержание 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...

Отзывы: