How can we help you today?

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 Singapore

Explore more
Range:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range:

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales enquiry online and an expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Centre

Help Centre

Find support resources for all your needs, in one place.

  • Product Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Contact Support
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Legal Information
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings