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 Tue Mar 19, 2019 6:20 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Dec 25, 2018 12:20 pm 
Offline

Joined: Wed Dec 19, 2018 8:51 am
Posts: 2
I was having trouble with I/O not being mapped correctly.

The Input from EL1008 in the attached image was not working earlier. The checkboxs under EtherCAT_Task(1) etc were all grayed out. After tinkering around it showed up as it is now. Unfortunately, I'm not sure exactly what I change.

I'm now having the same problem with the grey line (Application.PLC_PRG.Output5). It's grayed out and isn't being updated by the system.

Has anyone experienced this? I expect it's something related to updating after I change the code and compile that I'm doing incorrectly.

Thanks.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Tue Dec 25, 2018 9:12 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3195
Hi,
it seems that Output5 is really used in the PLC_PRG ( not only declared)?

Variables are only updated if the are really used in the pou's.
BR
Edwin


Top
   
PostPosted: Wed Dec 26, 2018 11:29 am 
Offline

Joined: Wed Dec 19, 2018 8:51 am
Posts: 2
Thanks Edwin.

I am using the variable in PLC_PRG. It appears it may be related to uploading to the device. I just made some changes between which Variables are mapped to which physical IO locations and they didn't update.

When I uploaded to the PLC by selecting "Login with download" instead of "Login with online changes" it now has correctly updated the IO for EtherCAT_Task.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 9 guests


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