CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Oct 22, 2018 12:48 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Jul 07, 2018 4:44 pm 
Offline

Joined: Thu Feb 08, 2018 11:17 am
Posts: 1
Hey, there!

I'm getting an access violation exception related to the struct "WHEEL_VELOCITIES". This DUT is used in the definition of a new struct, which is used in a function block. The struct "WHEEL_VELOCITIES" is also used as the return type of a method from that same function block.

What I find odd is that if I download the program to the Control Win Soft PLC, everything works well. It is only when I try to download to the beaglebone black (after updating the device) that I get this error. Also, if I remove the struct "WHEEL_VELOCITIES" from my code, Codesys still gives me the same error but regarding a different struct.

I have not defined any FB_INIT method for any function block and, from what I understand, DUTs don't have a FB_INIT or any other method associated with them, right? Is codesys interpreting my struct as a function block?

The error:
https://drive.google.com/drive/folders/1y5AFK2EZCUrh1scnktNZJvLMgSWup03P

Thank you for your time,
Paulo

UPDATE:
Got it working. I believe it had something to do with having set the attribute "{attribute 'pack_mode' := '0'}" in the struct and not in the sub struct. However that was not enough to correct the issue. I also had to remove the modbus slave I had associated with those variables, download and undo the removal.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited