Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Problems with setting output with Beckhoff EK1100 and EL2809

Problems with setting output with Beckhoff EK1100 and EL2809

JLG_War
Established Member

I have a problem with setting the outputs of my IO card. The systeem I have is an CtrlX core with a plc program, a ctrlx drive and a beckhoff bus coupler (EK1100) station with an 16 output card (2809).

I've succesfully configured the IO configuration and have no errors in my system.

JLG_War_1-1713186649772.png

If I don't add the output card to my plc program then I can set the output with the help of the datalayer with no problem. But when I add the output card to my plc program then for whatever reason my outputs keeps getting written over by something to 0. After adding the outputs to my plc program it's also not possible anymore to set the outputs with the datalayer.

JLG_War_3-1713186991740.png

Because the system is not giving me any errors I don't know why and how the system keeps overwriting these outputs. Even if I don't use the outputs in my PLC program they still keep getting overwritten. I want to know what is causing this problem and how to fix it because right now I don't know where to start looking to fix this.

 

 

 

 

 

4 REPLIES 4

JHU1XI1
Long-established Member

JHU1XI1_1-1713228243030.png

JHU1XI1_2-1713228327167.png

 

In my opinion, you may want to set it as enabled2 here

CodeShepherd
Community Moderator
Community Moderator

Could you be a bit more precise how you add the IOs to the PLC and how they are written?

So when I get it right you are in a first place using the data layer viewer in the ctrlX OS web UI to set the outputs.
Afterwards you add the IOs to the data layer realtime in your PLC program and still try to write it via the data layer viewer.

Did you set the variables to be updated always, as it seems on your screenshot? Then they will be always used in the PLC.

In this case the PLC will update your IOs cyclically (as kind of master over these IOs) and as they are known as false they also will be again set to that value. You would need to write the corresponding PLC variable to change the value which can be published via the data layer.

Which behaviour did you expect? Could you send us the device description used?

Thanks for the fast response.

For adding the io's to my plc program I clicked on Datalayer_Realtime and select realtime data. Then from the ethercat master I selected my drive parameters that I needed and my Output card

JLG_War_2-1713253075550.png

JLG_War_3-1713253150529.png

I also checked if the updated always was enabled but this is disabled.

JLG_War_0-1713252239594.png

I understand when the output is false that when I use the datalayer the output can be overwritten. But the problem is when I set the output to High in my PLC program the output starts blinking. I attached a video file where you can see the blinking. I only set the variable on one place to true and never to false. The blinking problem also occurs when I try to use the output pin from my drive.

JLG_War_1-1713252830481.png

So what I see is that something in the datalayer is overwriting my outputs because my plc program sets the value to true and never to false. I made a trace to make sure of this.

JLG_War_4-1713253932545.png

The end goal is to set the outputs correctly in my plc program and that it won't effect the rest of the system.

 

 

JLG_War
Established Member

I've found the cause why my outputs weren't working correctly. The problem started when I added the axis interface template to my project. Somewhere in the demo code in the axis interface it overwrites the datalayer. I don't know exactly where it does this but after I deleted the demo programs from my project I didn't have any problem anymore with my outputs and controlling my axis. 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist