Modbus RS485 prompts: Call to CreateFile() returned error 2!

Discussion of configuring and troubleshooting communication to PLC's or other devices using iX Developer.
Post Reply
Nepokadneza
Posts: 1
Joined: Tue Jul 08, 2014 8:24 am

Modbus RS485 prompts: Call to CreateFile() returned error 2!

Post by Nepokadneza »

Hello

does someone else get this Message after Loading a Projekt with Modbus over RS485. It only happens when i make a Modbus station with seriell connection, tcp connections are not affected.

I could not find anything about this error Message in the help or in the Forum.

Kind regards

Nepokadneza
Attachments
Beijer Fehler.png
Beijer Fehler.png (26.21 KiB) Viewed 106821 times

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: Modbus RS485 prompts: Call to CreateFile() returned erro

Post by Chris T. »

Nepokadneza,
This generally happens when an invalid comm port is selected. This can vary by panel type so refer to the controller help file to find the appropriate Comm port for your device.

Image

And adjust it in the controller settings:

Image
Attachments
comm_ports2.png
comm_ports2.png (22.76 KiB) Viewed 103890 times
comm_ports.png
comm_ports.png (59.09 KiB) Viewed 103890 times
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

felix.francis
Posts: 1
Joined: Wed Jul 17, 2019 3:57 pm

Re: Modbus RS485 prompts: Call to CreateFile() returned erro

Post by felix.francis »

HI - I realise that this is a very old topic but I stumbled across it by typing in the error code that I am getting. I am using a T7A HMI. I have set the COM Port to COM2 and set the COM2 to use RS485. (see screen shots below) Any ideas what the issue could be?
Attachments
ControllerSettings.png
ControllerSettings.png (11.72 KiB) Viewed 101233 times
COM Port Settings.png
COM Port Settings.png (12.68 KiB) Viewed 101233 times
ErrorMessage.png
ErrorMessage.png (7.01 KiB) Viewed 101233 times

Post Reply