Logging data retransmission using sample circuit
The figure below shows the control for transferring logging data again in the following situation: When "Select logging start
control" is "User circuit output", the transfer of logging data is stopped due to a communication error after sampling 256 points.
Logging start flag (RX3)
Logging start request (RY3)
FTP resend allowed (RY4)
FTP transfer completion flag (RX4)
FTP transfer error completion flag (RX5)
Logging operation state monitor (RWrB)
FTP transfer count monitor (RWrE)
FTP send
b3 of Logging operation control register
(Igdw_ctrl) (address: 1000_9000H)
Always write register 15
User circuit
Logging data FTP transfer status
part
(re_rs_usr_alrreg_0F_-
clk100m_reg[2:1])
Logging enable
(uc_logen_clk100m_reg)
Logging status
Igdw_sts[4]
Sampling pulse input
Sampling count
Implemented in FPGA module
Executed by the program.
If the logging data transfer fails and the logging data transfer is to be restarted from the beginning, turn on FTP resend allowed (RY4) before starting logging
data collection.
When b3 of Logging operation control register (lgdw_ctrl) (address: 1000_9000H) is Rising for logging start allowed (1), enable (1) Logging enable
(uc_logen_clk100m_reg) from the user circuit part at any timing.
The logging unit writes logging data to DDR3L SDRAM for each sampling pulse.
After completion of logging for the logging data size setting, logging data transfer to the FTP server is started. At that time, the status of Logging operation
state monitor (RWrB) becomes FTP transfer in progress (4H), and the status of Always write register 15 logging data FTP transfer status
(re_rs_usr_alwreg_0F_clk100m_reg[2:1]) becomes Transfer in progress (1H).
If an error occurs in FTP communication while FTP resend allowed (RY4) is on during logging data transfer, the status of Logging operation state monitor
(RWrB) becomes FTP transfer start waiting (5H) and the status of Always write register 15 logging data FTP transfer status
(re_rs_usr_alwreg_0F_clk100m_reg[2:1]) becomes Transfer completed (failure) (3H). Also, FTP transfer completion flag (RX4) and FTP transfer error
completion flag (RX5) are turned off and on.
If Logging start request (RY3) is turned from off to on at any time by the program, the transfer of logging data is restarted from the beginning. When the
request is accepted, Logging start flag (RX3) turns from off to on, the status of Logging operation state monitor (RWrB) changes to FTP transfer in progress
(4H), and the status of Always write register 15 logging data FTP transfer status (re_rs_usr_alwreg_0F_clk100m_reg[2:1] ) becomes Transfer in progress
(1H). Also, FTP transfer completion flag (RX4) and FTP transfer error completion flag (RX5) are turned off.
When the transfer of logging data to the FTP server completes successfully, the status of Always write register 15 logging data FTP transfer status
(re_rs_usr_alwreg_0F_clk100m_reg[2:1]) changes to Transfer completed (success) (2H). Also, the status of Logging operation state monitor (RWrB)
becomes Collection start waiting (1H), FTP transfer error completion flag (RX5) is off, FTP transfer completion flag (RX4) is turned from off to on, and FTP
transfer count monitor (RWrE) is incremented.
When b3 of Logging operation control register (lgdw_ctrl) (address: 1000_9000H) is Falling for logging start allowed (0), disable (0) Logging enable
(uc_logen_clk100m_reg) from the user circuit at any timing. Logging operation control register (lgdw_ctrl) (address: 1000_9000H) b3 is logging start rising
enable (1).
When b3 of Logging operation control register (lgdw_ctrl) (address: 1000_9000H) is Rising for logging start allowed (1), logging can be started again by
enabling (1) Logging enable (uc_logen_clk100m_reg) from the user circuit part at any timing. At this timing, for the FPGA module, the status of Always write
register 15 logging data FTP transfer status (re_rs_usr_alwreg_0F_clk100m_reg[2:1]) changes to Before transfer start (0H). If FTP transfer completion flag
(RX4) and FTP transfer error completion flag (RX5) are turned on, FTP transfer completion flag (RX4) and FTP transfer error completion flag (RX5) are
turned off.
*1 If an error occurs in FTP communication while FTP resend allowed (RY4) is off during logging data transfer, the status of Logging
operation state monitor (RWrB) becomes Collection start waiting (1H) and the status of Always write register 15 logging data FTP
transfer status (re_rs_usr_alwreg_0F_clk100m_reg[2:1]) becomes Transfer completed (failure) (3H). Also, FTP transfer completion flag
(RX4) and FTP transfer error completion flag (RX5) are turned off and on.
OFF
OFF
Ò
ON
OFF
OFF
OFF
Collection start
Collection start
Collecting
Collecting
FTP transfer
FTP transfer
waiting (1H)
waiting (1H)
(2H)
(2H)
in progress (4H)
in progress (4H)
0
No communications
No communications
Communicating
Communicating
Õ
H
L
Before transfer
Before transfer
Transfer
Transfer
start (00b)
start (00b)
in progress (01b)
in progress (01b)
H
Ó
L
H
L
Ô
0 1
2 3
*1
ON
ON
×
ON
ON
FTP transfer
FTP transfer
FTP transfer start waiting (5H)
FTP transfer start waiting (5H)
in progress (4H)
in progress (4H)
Communication error
Communication error
(No communications)
(No communications)
Communicating
Communicating
Ö
Ø
Transfer in
Transfer in
Transfer completion (failure) (11b)
Transfer completion (failure) (11b)
progress (01b)
progress (01b)
256
Collecting
Collecting
Collection start waiting (1H)
Collection start waiting (1H)
(2H)
(2H)
1
No communications
No communications
Before
Before
transfer
transfer
start (00b)
start (00b)
Transfer completion (success) (2H)
Transfer completion (success) (2H)
Ù
Ú
0
1
2
3
12 FUNCTIONS
349
12.8 FTP Client Function
12