En quoi pouvons-nous vous aider aujourd'hui ?

Using both CREATE_FILE and OPEN_FILE returns error 21.

If you configure the CREATE_FILE, OPEN_FILE, WR_DATA_TO_FILE and CLOSE_FILE to create or open a file on the M340 or M580 data storage SD card,  attempts to perform either a write to the file or close the file without properly considering the usage of the FILEDESC output on both the CREATE_FILE and OPEN_FILE blocks  , will results in an error 21 getting returned..

adh

This is due to the output of the OPEN_FILE block over writing the output of the CREATE_FILE block.


To resolve the issue, the following logic can be used as an example on how to configure the OPEN_FILE and CREATE FILE.
ertgy

Schneider Electric Belgium

En savoir plus

En savoir plus

Besoin d'aide ?

Sélectionnez le bon produit

Trouvez rapidement et facilement les produits et accessoires adaptés à vos applications.

Obtenir un devis

Effectuez une demande de renseignements en ligne et un expert vous contactera.

Où acheter ?

Trouvez facilement le distributeur Schneider Electric local le plus proche.

Centre d'aide

Trouvez des ressources de support pour tous vos besoins, en un seul endroit.