News:

SMF - Just Installed!

Main Menu

Unhandled exception error

Started by Burgerfeet, October 27, 2022, 04:30:59 PM

Previous topic - Next topic

Burgerfeet

Hi,

I have just started using EasyPLC and have run into an unhandled exception error when trying to connect on-line with PLC.

Currently, I am trying to use the TIA Portal PLCSIM integration but have also tried using EasyPLC on its own, however, have run into the same issue on two separate PCs.

It seems that the issue only occurs when I try to connect online to the virtual CPU. I can't manage to get the EasyPLC porject connected to the TIA PLCSIM V16 using the NetToPLC program; the IO test does not work.

Has anyone else run into this problem?

Thanks

EasyPLC_Master

#1
1) To connect EasyPLC or Machines Simulator with TIA PORTAL, be sure you configure for digital I/O start byte 2 (0 and 1 are reserved). Explained here: https://youtu.be/pYTPqQtQkAI

Documentation here: https://nirtec.com/forum/index.php?topic=319.msg561#msg561

2) Regarding the error trying to connect on-line with the PLC is using your own program or one included with EasyPLC? if is the second case can you send the *.plc program to easyPLC¡@nirtec.com in order to analize?

Burgerfeet

Thanks for the response,

I have managed to figure out that the reason for the error is if you are trying to download to PLC, upload from or connect to a PLC with a blank program it will throw an unhandled exception error.

I couldn't get my PLCSIM to work on TIA, so I have connected to EasyPLC via ethernet to a physical 1212C AC/DC/RLY   6ES7 212-1BD30-0XB0   v2.0

For some reason, when I test the PLC connection via EasyPLC to monitor the I/O, the physical outputs are being monitored on the inputs of the EasyPLC program and the physical inputs are not being read whatsoever.

I have set the Inputs and Outputs on start byte 2, Inputs on 3 - Outputs on 2, Inputs on 2 - Outputs on 3 however I cannot manage to get around the problem.

Attached are some images of the problem and configuration.





Thanks


EasyPLC_Master

In fact, to connect with Virtual PLC CPU it is necessary to have a program previously saved in EasyPLC, otherwise the error described will appear.

Take note the Siemens PLC inputs will be the EasyPLC outputs and the S. PLC outputs will be the EasyPLC inputs, this is due the PLC inputs are entities to be written by the simulator and the PLC
outputs are entities to be read by the simulator.
The Data Blocks can be read and/or written by EasyPLC.

Have you followed these instructions?: https://nirtec.com/forum/index.php?topic=319.msg561#msg561