beremiz

py_ext: fix CSV Writer
py2compat
18 months ago, Edouard Tisserant
61cb4f8f9b55
py_ext: fix CSV Writer

fix POU logic :
- SAVE is a BOOL
- invocation of py_eval on rising edge of SAVE
- remove save python argument

fix python:
- use no encoding for file open (python2)
- re-use detected dialect if any
- use no "rt+" and truncate since no need to re-sniff dialect for output file
- return "OK" instead of "#SUCCESS", preventing POU logic to ACK result
input,smta,1,DINT,0
input,smtb,1,DINT,1
input,smtc,1,DINT,2
input,smtd,1,DINT,3
input,smte,1,DINT,4
output,smtf,1,False,DINT,0
output,smtg,1,False,DINT,1
output,smth,1,False,DINT,2
output,smti,1,False,DINT,3
output,smtj,1,False,DINT,4