EasyManua.ls Logo

ascon S2 Series - Page 41

ascon S2 Series
66 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
33
Chapter 6
CPU Remote Access
6-1 TFTP Protocol Access
The MP01 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 11
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 MP01 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 MP01 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 MP01 unit, using the
source file “
Resource.prs
”, the command will be:
tftp -i 192.168.5.11 put Resource.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 “Resource.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

Related product manuals