Operation Example - Mitsubishi Electric NZ2GN2S-D41P01 User Manual

Cc-link ie tsn fpga module
Table of Contents

Advertisement

Operation example

An operation example of the FTP client function is shown.
Logging data transfer
When "Select logging start control" is "Register setting value (RY3)", the control for transferring logging data after sampling is
completed of 256 points is shown below.
Logging start flag
(RX3)
Logging start request
(RY3)
FTP transfer completion flag
(RX4)
FTP transfer error
completion flag (RX5)
Logging operation
state monitor (RWrB)
FTP transfer count monitor
(RWrE)
Sampling pulse input
Sampling count
FTP send
Implemented in FPGA module
Executed by the program.
 Turn off and on Logging start request (RY3) at any time to start logging. When logging starts, the status of Logging operation state monitor (RWrB) becomes
Collecting (2H), and Logging start flag (RX3) turns off and on.
 Sampling is performed after logging starts.
 Logging data collection is completed when sampling is performed for the logging data size setting. After that, logging data transfer to the FTP server starts,
and the status of Logging operation state monitor (RWrB) becomes FTP transfer in progress (4H).
 When the logging data transfer to the FTP server is completed successfully, the status of Logging operation state monitor (RWrB) becomes Collection start
waiting (1H). While FTP transfer error completion flag (RX5) is off, FTP transfer completion flag (RX4) is turned from off to on. Also, the FTP transfer count
monitor (RWrE) is incremented.
 When Logging start request (RY3) is turned on and off by the program, Logging start flag (RX3) turns on and off.
 Turn off and on the logging start request (RY3) to restart logging. If FTP transfer completion flag (RX4) and FTP transfer error completion flag (RX5) are on
at this timing, FTP transfer completion flag (RX4) and FTP transfer error completion flag (RX5) are turned off.
12 FUNCTIONS
346
12.8 FTP Client Function
ON
OFF
ON
Ò
OFF
OFF
OFF
Collection start
Collecting (2H)
waiting (1H)
0
Ó
0
1
No communications
FTP transfer
in progress (4H)
Ô
2
3
Communicating
×
Ö
ON
Collection start waiting (1H)
1
256
Õ
No communications
Collecting (2H)
0
1

Advertisement

Table of Contents
loading

Table of Contents