Search talk: can raw

 
<< < 1 .. 54 55 56 57 58 59 > >> (Page 56 of 59)

Post by ppix on Establishing TLS Connection with MQTT Broker using MQTT Client SL Package CODESYS Forge talk (Post)
I’m currently working on establishing a TLS connection with an MQTT broker using the MQTT Client SL package in CODESYS. While I’ve successfully established communication with the broker without TLS, I'm encountering issues when trying to enable TLS. In the 'MQTT Explorer' application, I can easily upload the server certificate (.crt), client certificate (.crt), and client key (.key). However, in CODESYS, I can’t find a way to upload my client key (.key file). Here's a summary of my current setup: Certificates: I have uploaded both the client and server certificates to the certificate store under the 'Trusted Certificates' folder in the security screen. TLS Context Initialization: Despite setting the _sCommonName as the name of my client certificate, a new self-signed certificate is created and placed within the device’s certificates. I then need to manually move this certificate to the trusted certificates folder. This results in three certificates in my trusted certs folder: client cert, server cert, and the newly created cert. _ciDefaultCertInfo : MQTT.NBS.CERT_INFO := (psInfo := ADR(_sCommonName), udiSize := TO_UDINT(LEN(_sCommonName))); // CN of the certificate (common name) _sCipherList : MQTT.NBS.CIPHER_LIST := STRUCT(psList := ADR('HIGH'), udiSize := 4); // Cipher string see https://www.openssl.org/docs/man1.1.1/man1/ciphers.html _tlsContext : MQTT.NBS.TLSContext := ( sUseCaseName := _sCommonName, // A certificate is stored in the certificate store with the use case name. You can choose any name. Here we use the common name. ePurpose := MQTT.NBS.PURPOSE.CLIENT_SIDE, // For client certificates set this to NBS.PURPOSE.CLIENT_SIDE sTLSVersion := '1.3', // The TLS version sCipherList := _sCipherList, // Set the cipher list sHostname := sHostname, // The hostname of the broker udiVerificationMode := 2, // 2 => Active Peer verification ciCertInfo := _ciDefaultCertInfo, // Set the cert info itfCertVerifer := 0); // 0 => No Verifier mqttClient : MQTT.MQTTClient := (xUseTLS:=TRUE, itfTLSContext := _tlsContext, itfAsyncProperty := _asyncProperty); Additional Details: In the client FB, I’ve set uiPort:= 8883, xUseTLS:= TRUE, and configured itfTLSContext as mentioned above. The certificates are encrypted with SHA256RSA. sHostname is the IP address of my broker. I’ve attached a copy of the client FB, which shows straight lines where variables are assigned and boxes where they are not. I am currently trying this on the only 2 compatible versions of COSDESYS with my controller (V3.5.15.20 and V3.5.18.40) My Question: How do I correctly set up this mTLS connection? What might I be missing? Any guidance or suggestions would be greatly appreciated, especially considering I’ve already successfully established a non-TLS connection with the same broker. Thank you in advance for your help!
Last updated: 2024-06-19

Post by falif461 on ╭⁠☞[] Temu Coupon Code $100 Off⤁ {"acq557317"} $100 Off for New and Existing users→⁠_⁠→ CODESYS Forge talk (Post)
Temu Coupon Code $100 Off Colombia ➥ {acq557317} & {acq557317} , TEMU Coupon Code "acq557317" | $100 OFF & 50% DISCOUNT, TEMU Coupon Code "acq557317" ,is an all in one opportunity, which also offers $100 Off & 50% Discount! The TEMU Coupon Code "acq557317" offers an impressive $100 discount and a 50% discount on purchases for both new and existing customers. This special offer is a fantastic opportunity to save significantly on your TEMU shopping experience. By using the Coupon Code "acq557317" in Colombia , you can unlock the $100 coupon bundle, which provides $120 worth of savings. This means that you can enjoy a $100 discount on your order, as well as access to exclusive deals and additional savings opportunities. ⇦ Exclusive Temu coupon Codes ,,,acq557317,,,,, ➤ Offers → Discounts, Student Deals & More ╰┈➤ Best Temu Coupon Codes Colombia ➤ "acq557317" ⇨ "acq557317" ➥ Up to 50% Off Retrieve ➲$100➲ TEMU Coupon Code ➥【acq557317】 or 【acq557317】⇒{Colombia } || AUG/SEP 2024 To redeem the TEMU $100 Coupon Code, simply follow these steps: Sign up for a TEMU account on their website or mobile app. Add items worth $100 or more to your shopping cart. During checkout, enter the Coupon Code "acq557317" in the designated field. The $100 discount will be automatically applied, and you can also enjoy an additional 50% off on your purchase. This Coupon Code is valid for both new and existing TEMU customers, making it a great opportunity for everyone to save on their shopping. The $100 coupon bundle can be combined with other available discounts, such as the 30% off code for fashion, home, and beauty categories, allowing you to maximize your savings. ➥ Temu Coupon Code $100 Off {acq557317} Colombia ➥ Temu Coupon Code 40 Off {acq557317} Colombia ➥ Temu Coupon Code 50 Off {acq557317} Colombia ➥ Temu Coupon Code 70 Off {acq557317} Colombia ➥ Temu Coupon Code 90 Off {acq557317} Colombia ➥ Temu Coupon Code 30 Off {acq557317} Colombia ➥ Temu Coupon Code First Order {acq557317} Colombia ➥ Temu Coupon Code Existing User {acq557317} Colombia ➥ Temu Coupon Code 90 Off {acq557317} or {acq557317} Colombia Temu Coupon Code Colombia $100 Off [acq557317] For New Users 2024 Temu has rapidly gained popularity as a go-to shopping destination, offering a vast array of trending products at unbeatable prices. To welcome new users, Temu is excited to offer the exclusive Temu coupon code $100 off [acq557317]. Alongside this, existing customers can enjoy significant savings with the acq557317coupon code. Why You Should Embrace Temu Coupon Codes Colombia Temu has revolutionized online shopping by providing an extensive range of products, from fashion and electronics to home goods and accessories. Coupled with fast delivery and free shipping to numerous countries, Temu has become a preferred choice for budget-conscious shoppers. Now, imagine enjoying these benefits with an additional $100 off your purchase! That's where our Temu coupon codes come in. <get $50="" off="" your="" first="" temu="" order!=""> Use Code {acq557317} Now! |Exclusive Offer: $50 Off Your First Temu Purchase with Code {acq557317}| <save big!="" $50="" off="" your="" first="" order="" on="" temu=""> with Code {acq557317} |Unlock $50 Savings on Temu> First Order Using {acq557317}| $50 Off Your Initial Temu Order Use Code {acq557317} Today! <get $50="" off="" temu’s="" first="" purchase=""> with Code {acq557317} |Don’t Miss Out: $50 Off Your First Temu Order| Use Code {acq557317} <$50 Discount on Your First Temu Purchase> Use {acq557317} |Amazing $50 Off on Your First Temu Order| with Code {acq557317} <start shopping="" with="" $50="" off="" on="" temu!=""> Use Code {acq557317} |First Order Special: $50 Off at Temu| Use {acq557317} 🥳 <save $50="" on="" your="" first="" temu="" purchase!=""> Apply Code {acq557317} 🥳 |Hot Deal: $50 Off Your First Order on Temu| Code {acq557317} <exclusive $50="" off="" on="" your="" first="" temu="" order!=""> Use Code {acq557317} |First-Time Shopper? Get $50 Off at Temu| Use Code {acq557317} <get $50="" off="" your="" first="" temu="" order!=""> Use Code {acq557317} Now! |Exclusive Offer: $50 Off Your First Temu Purchase with Code {acq557317}| </get></exclusive></save></start></get></save></get> Unveiling Top Temu Coupon Codes for August & September 2024 To maximize your savings, consider these exceptional Temu coupon codes: acq557317: $100 off for new users - A fantastic welcome offer. acq557317: $100 off for existing customers - A reward for loyalty. acq557317: $100 extra off - Boost your savings significantly. acq557317: Free gift for new users - A delightful surprise. acq557317: $100 coupon bundle - A comprehensive savings package. Navigating the Path to Temu Savings Redeeming your Temu coupon code is a straightforward process: Create a Temu account or log in to your existing one. Explore Temu's vast collection and add your desired items to your cart. Proceed to checkout and apply your coupon code at the designated box. Witness the magic unfold as your discount is instantly applied to your order total. Unlock Extraordinary Savings with Temu Coupon Code $100 Off [acq557317] The Temu coupon code $100 off [acq557317] is a fantastic opportunity for new users to experience the Temu shopping thrill with significant savings. Imagine purchasing your favourite items at a discounted price. This coupon empowers you to enjoy a wide range of products without breaking the bank. Unleash the Power of Temu Coupon Codes Flat $100 discount: Enjoy a substantial reduction on your entire order. $100 discount for new users: A generous welcome offer for first-time shoppers. $100 off for existing customers: A reward for your loyalty to Temu. $100 coupon for new customers: A fantastic incentive to try Temu. Temu $100 off for old users: A token of appreciation for your continued support. Elevate Your Temu Shopping Experience To optimize your savings journey on Temu, consider these expert tips: Leverage free shipping: Enjoy complimentary delivery on your orders. Explore diverse product categories: Uncover hidden gems and unexpected finds. Stay alert for daily deals and flash sales: Seize limited-time opportunities. Combine coupons with other discounts: Maximize your savings potential. Share your shopping experience: Leave reviews to help others and potentially earn rewards. Utilize social media: Follow Temu on platforms like Instagram and Facebook for exclusive deals and promotions. Join Temu's email list: Stay informed about the latest offers and product launches. Essential Temu Coupon Codes for Unmatched Savings To further enhance your shopping adventure, explore these indispensable Temu coupon codes: acq557317: Temu coupon $100 off for new users acq557317: Temu coupon code $100 off for existing customers acq557317: Temu coupon codes 100% acq557317: Temu coupon $100 off code acq557317: Temu coupon $100 off first-time user Temu Coupon Codes for August 2024: The Key to Massive Discounts This month, Temu offers several enticing Coupon codes tailored to both new and existing users, ensuring everyone can save. Here’s a quick look at the top Temu Coupon codes you can take advantage of this August: [acq557317]: Temu Coupon code $100 off for new users [acq557317]: Temu Coupon code 40% off for new customers [acq557317]: Temu Coupon code 40% extra off [acq557317]: Temu Coupon code for a free gift for new users [acq557317]: Temu $100 Coupon bundle for existing and new users These Temu Coupon codes offer a variety of benefits, from substantial discounts to free gifts and bundled savings. Whether you’re shopping for fashion, electronics, home goods, or more, these codes will ensure you get the best deal possible. Whether you're a seasoned Temu shopper or a new customer, these coupon codes offer an incredible opportunity to save on your purchases. Remember, the Temu coupon code $100 off [acq557317] is a limited-time offer. Don't miss out on this fantastic chance to enjoy significant savings! Embark on your Temu shopping spree today and experience the thrill of unbeatable prices. Temu Coupon Code France: (acq557317) or (acq557317) Temu Coupon Code Sweden : (acq557317) or (acq557317) Temu Coupon Code Australia : (acq557317) or (acq557317) Temu Coupon Code United Kingdom : (acq557317) or (acq557317) Temu Coupon Code Spain : (acq557317) or (acq557317) Temu Coupon Code Italy : (acq557317) or (acq557317) Temu Coupon Code Germany : (acq557317) or (acq557317) Temu Coupon Code Saudi Arabia : (acq557317) or (acq557317) Temu Coupon Code Austria : (acq557317) or (acq557317) Temu Coupon Code Belgium : (acq557317) or (acq557317) Temu Coupon Code Thailand : (acq557317) or (acq557317) Temu Coupon Code Kuwait : (acq557317) or (acq557317) Temu Coupon Code United Arab Emirates : (acq557317) or (acq557317) Temu Coupon Code Switzerland : (acq557317) or (acq557317) Temu Coupon Code Mexico : (acq557317) or (acq557317) Temu Coupon Code New Zealand : (acq557317) or (acq557317) Temu Coupon Code Poland : (acq557317) or (acq557317) Temu Coupon Code United States : (acq557317) or (acq557317) Temu Coupon Code Portugal : (acq557317) or (acq557317) Temu Coupon Code Netherlands : (acq557317) or (acq557317) Temu Coupon Code Brazil : (acq557317) or (acq557317) Temu Coupon Code Colombia : (acq557317) or (acq557317) Temu Coupon Code Chile : (acq557317) or (acq557317) Temu Coupon Code Israel : (acq557317) or (acq557317) Temu Coupon Code Egypt : (acq557317) or (acq557317) Temu Coupon Code Peru : (acq557317) or (acq557317) Temu Coupon Code Ireland : (acq557317) or (acq557317) Temu Coupon Code Hungary : (acq557317) or (acq557317) Temu Coupon Code Romania : (acq557317) or (acq557317) Temu Coupon Code Bulgaria : (acq557317) or (acq557317) Temu Coupon Code Colombia : (acq557317) or (acq557317) Temu Coupon Code Slovenia : (acq557317) or (acq557317) Temu Coupon Code Colombia : (acq557317) or (acq557317) Temu Coupon Code Europe : (acq557317) or (acq557317) Temu Coupon Code Malaysia : (acq557317) or (acq557317) Temu Coupon Code Oman : (acq557317) or (acq557317) Temu Coupon Code Norway : (acq557317) or (acq557317) Temu Coupon Code Switzerland : (acq557317) or (acq557317) Temu Coupon Code Czech Republic : (acq557317) or (acq557317) Temu Coupon Code Asia : (acq557317) or (acq557317) Temu Coupon Code East Asia : (acq557317) or (acq557317) Temu Coupon Code Middle East : (acq557317) or (acq557317) Temu Coupon Code Cyprus : (acq557317) or (acq557317) Temu Coupon Code Central : (acq557317) or (acq557317) Temu Coupon Code Eastern : (acq557317) or (acq557317) Temu Coupon Code Romania : (acq557317) or (acq557317) Temu Coupon Code Canada : (acq557317) or (acq557317) Temu Coupon Code Colombia : (acq557317) or (acq557317) Temu Promo Code-{acq557317} Temu Promo Code: $100 OFF{acq557317} Temu Coupon Code: Free Shipping{acq557317} Temu $100 OFF Code{acq557317} Temu 50% Discount Coupon{acq557317} Temu $120 Coupon Bundle Code{acq557317}{acq557317} Temu Student Discount Coupon Code{acq557317} temu existing user coupon code Using Temu's coupon code [{acq557317}] will get you $100 off, access to exclusive deals, and benefits for additional savings. Save 40% off with Temu coupon codes. New and existing customer offers. temu coupon code May 2024- {acq557317} temu new customer offer{acq557317} temu discount code 2024{acq557317} 100 off coupon code temu{acq557317} temu 100% off any order{acq557317} 100 dollar off temu code{acq557317} What is Temu $100 Coupon Bundle? New Temu $100 coupon bundle includes $120 worth of Temu coupon codes. The Temu $100 Coupon code "{acq557317}" can be used by new and existing Temu users to get a discount on their purchases. Enjoy $100 Off at Temu with Promo Code [acq557317] – Exclusive for August and September 2024! Looking for incredible savings on top-quality products at Temu? Whether you're new to Temu or a seasoned shopper, our special promo code [acq557317] offers you an exclusive chance to save $100 on your purchases throughout August and September 2024. Here's everything you need to know to take full advantage of this fantastic offer. For New Customers: 1. Sign Up and Save Big: • Download the Temu App: Start by downloading the Temu app from your smartphone's app store or visit the Temu website using your computer. Temu's user-friendly interface ensures a smooth shopping experience. • Create an Account: Register for a new account by providing your basic details. This process is quick and straightforward, and it unlocks your access to a $100 discount. • Browse and Add to Cart: Explore Temu's extensive range of products, from stylish fashion items to cutting-edge electronics and home essentials. Add items totaling $100 or more to your cart. This ensures that you meet the minimum purchase requirement to use the promo code. 2. Apply Your Promo Code: • Proceed to Checkout: Once you've filled your cart, go to the checkout page. Here, you'll see a field labeled "Promo Code" or "Discount Code." • Enter Code [acq557317]: Input the promo code [acq557317] into the designated field and click "Apply." The $100 discount will be automatically applied to your total. • Review and Complete Purchase: Verify that the discount has been applied to your order. Complete the payment process and enjoy your shopping spree with a $100 discount! Tip for New Customers: This exclusive offer is valid only during August and September 2024. Make sure to use the code [acq557317] within this period to maximize your savings. For Existing Customers: 1. Shop and Save with Ease: • Log Into Your Account: If you're a returning Temu shopper, simply log into your existing account on the Temu app or website. • Explore and Add Items: Browse through the extensive product catalog. From the latest gadgets to home decor, add items totaling $100 or more to your cart. • Prepare for Checkout: Proceed to the checkout page where you'll be able to apply your discount. 2. Redeem Your Promo Code: • Enter Promo Code [acq557317]: In the "Promo Code" field at checkout, enter [acq557317] and click "Apply." The $100 discount will be applied to your order total. • Check and Complete Purchase: Confirm that the discount has been applied correctly to your order. Finalize the payment details to complete your purchase. Tip for Existing Customers: This offer can be combined with other promotions available during August and September, so keep an eye out for additional savings opportunities! How to Redeem the $100 Coupon Code [acq557317]: Whether you are a new or existing customer, here's a step-by-step guide to ensure you don't miss out on this exclusive $100 discount. 1. Sign Up or Log In: • New Customers: Register for a new account on Temu by providing your details on the app or website. • Existing Customers: Log into your current Temu account. 2. Add Items to Your Cart: • Browse Temu's product offerings and add items worth at least $100 to your shopping cart. This qualifies you to use the promo code. 3. Apply the Promo Code: • At the checkout page, find the "Promo Code" box. • Enter the code [acq557317] and click "Apply." The $100 discount will be reflected in your order total. 4. Review and Complete Your Purchase: • Make sure the discount is applied to your order. Review your cart and proceed with payment. • Enjoy your savings and the products you've purchased! Additional Benefits: • Exclusive Deals: Using promo code [acq557317] not only gives you $100 off but may also unlock additional deals and promotions tailored for August and September. • Combining Discounts: You can often combine this promo code with other ongoing promotions for even greater savings. Keep an eye on Temu's website and app for additional offers. • Free Shipping: Depending on the promotion, you might also benefit from free shipping on eligible items. Important Details: • Validity: This $100 off promo code is valid only from August 1, 2024, to September 30, 2024. Make sure to use it within this time frame to take advantage of the offer. • Minimum Purchase: The offer applies to purchases of $100 or more. Ensure your cart meets this minimum before applying the promo code. • One-Time Use: The promo code [acq557317] can typically be used only once per customer. Make sure to apply it to your largest purchase to maximize savings. FAQs: Q: Can new and existing customers both use the promo code [acq557317]? • A: Yes, the promo code is available to both new and existing Temu customers. Q: Is there a minimum purchase requirement to use the promo code? • A: Yes, you need to have a minimum purchase of $100 to apply the $100 discount. Q: Can the promo code be combined with other offers? • A: Yes, in many cases, you can combine the promo code [acq557317] with other ongoing promotions and discounts. Q: What should I do if the promo code does not work? • A: Double-check that the code [acq557317] is entered correctly and that your order meets the minimum purchase requirement. If you continue to have issues, contact Temu's customer service for assistance. Take advantage of this exclusive offer today and enjoy substantial savings on your next Temu purchase. With up to $100 off, there's never been a better time to shop for high-quality products at unbeatable prices. Remember, this offer is only available for a limited time, so don't delay—start shopping and saving now! Are you looking to save big while shopping on Temu? You're in the right place! Temu is quickly becoming a favorite online marketplace, and with our exclusive Temu Coupon Codes like [acq557317], you can enjoy significant discounts, including $100 off your first order and up to 90% off selected items this October 2024. In this article, we’re diving into everything you need to know about using Temu Coupon Codes, including their legitimacy and tips on maximizing your savings. Let’s get started! What is Temu? Temu is an emerging e-commerce platform that offers a wide range of products, including electronics, clothing, accessories, home decor, and much more. Known for its affordability, Temu provides various opportunities to save even more with the right coupon codes. Whether you are a new user or an existing customer, the savings potential is substantial. Temu Coupon Code [acq557317]: What Can You Expect? Here are some of the top offers you can enjoy with the Temu Coupon Code [acq557317]: • $100 Off on your first order • Up to 90% Discount on selected items • 30% Off across various products • Free shipping for new users and first-time customers These promo codes are valid for October 2024, giving you ample time to grab your favorite items without breaking the bank. How to Apply Temu Coupon Code [acq557317]? Applying a Temu Coupon Code like [acq557317] is easy! Here’s how to do it:
Last updated: 2024-10-26

Post by shooxplc on How to call the same program from library and get the vars updated. CODESYS Forge talk (Post)
Hi, I am writing to you today because I would like to create a library that would contain a program with its various subprograms, in my example "PLC_PRG" with "a", "aa", "aaa". But once the library is created as shown below: I would like to be able to drag and drop my folder as many times as I want (let's say I manage the same system multiple times). Once the drag and drop is done, we can see the second folder with the variables renamed successfully. As shown below: But my variables in CAD_1 remain the same as for CAD, so it's PLC_PRG instead of PLC_PRG_1, for example. Is there a solution to automate this? I wouldn't want to have to rename all my variables manually, considering that in the program where I want to do this, the number of variables is substantial. Lucas.
Last updated: 2023-08-23

Post by yr00 on OPC UA datasource low read frequency CODESYS Forge talk (Post)
Hello everyone, I am trying to test the OPC UA client feature in Codesys. My setup is the following; I have a Codesys simulation/ visualization running on Control Win V3. My OPC UA server is hosted on a Siemens 1518 PLC using PLCSim Advanced. The setup is completely virtual so there are no really PLCs. Everything is on my laptop. Writing data from the Codesys simualtion to the server is very quick. I have a PLC program running on another 1500 PLC which reads data from simulation via the server, and changes in the simulation (e.g. button pressed) appear within hundreds of miliseconds if not tens of miliseconds in my PLC program. However, when it comes to reading data from the OPC UA Server by Codesys, it taks around 1-2s. I connected a UAExpert client and it gets update very quickly so I am fairly sure the problem is with Codesys. I have tried changing the update rate in datasource -> General and Diagnosis, but it doesn't seem to have an effect. Do you guys have any suggestion on what I can do?
Last updated: 2023-08-29

Post by captaincookie on increase default string length in queue CODESYS Forge talk (Post)
Hello, I'm using Codesys V3.5 SP18 Patch 4. In the ElementCollectionExample Project from Codesys, I test the SimpleQueueExample in a Control Win V3 x64 environment. I try to add a string of 95 characters length to a queue. The default length of strings is defined as 80 characters. In the initialization of a string variable, it is possible to increase the length by the definition of e.g. STRING(1000). But when I write the string defined like this to the queue, only 80 characters are written to it and the rest is missing. I think the default length is still set in the queue definition, so it is necessary to change this, isn't it? Is there any option to increase the default length of strings in the queue? Attached you can find the used project. Thanks in advance. If any information are missing or my description unclear please let me know.
Last updated: 2023-10-05

Post by mondinmr on Jitter problems on imx8 CODESYS Forge talk (Post)
We are experiencing serious jitter issues on an ARM64 imx8. Until now, on rpi and beaglebone derivatives, and on Intel, we never encountered jitter issues unless they were already present on the device. In this case, as can be seen from the attached graph, we have excellent maximum latency. The cyclictest on the isolated core dedicated to IEC CODESYS tasks shows a latency of 37µs, with an average of 14µs. Usually, on all other devices, with an RT kernel, with the appropriate parameters to avoid frequency throttling, with properly managed IRQs, and with the disabling of large page sizes, the jitter measured by CODESYS is very close to the cyclictest latency. However, on this imx8, we are noticing a fluctuating value of +/- 300µs that seems to be added to this latency, as if something occasionally miscalculates the sleep times by exactly +/- 300µs. Two screenshoot attached. - Result of cyclictest - Jitter on CODESYS Tasks are assigned to isolated core!
Last updated: 2023-10-18

Post by andrej on Write to File on soft PLC winV3x64 CODESYS Forge talk (Post)
Hello all, I would like to store some data in text file. I use the soft PLC Win V3x64, on Windows 10. I use the SysFile Library 3.5.17.0. If I store the file directly in the in the directory of the PLC i.e. in '/CODESYSControlWinV3x64/E1FA7ABE/PlcLogic/LogAU.txt' the file is correctly filled with the data. However, If I use an absolute path to a different directory no data is stored in the respective file. Despite the fact that the respective file exists and the Filehandler is correctly opened (see in picture _fdSysFHandle <> -1). // sFileName : STRING := 'LogAU.txt'; // STORES FILE IN ../CODESYSControlWinV3x64/../PlcLogic/LogAU.txt' sFileName : STRING := 'C/Temp/LogAU.txt'// DOES NOT WORK --------------------- // FILE DESCRIPTOR _fdSysFHandle := SysFile.SysFileOpen( szFile:= sFileName,am:= SysFile.AM_APPEND,pResult := ADR(_Result)); Does some have an idea where the problem is, resp. how I can get store a file in an arbitrary directory. Thanks a lot and kind regards Andreas
Last updated: 2023-10-24

Post by toffeebonbon on EL7041-0052 - does it run with EL7041 SoftMotion? CODESYS Forge talk (Post)
Good morning everyone. In my setup I am trying to use a couple of EL7041-0052 (the EL7041 variant without terminals for an encoder) to run stepper motors without feedback. When using the softmotion drivers for the EL7041 (Rev22 and Rev24, even selecting external feedback type doesn't work) the device log shows warnings for the corresponding hardware: "SDO write error 0x1 -> 0x8012:0x08 eError 0x1 AbortCode 0x6090011". 0x8012:0x08 is the register for the Feedback Type. My best guess was setting the the register value in the start parameters to zero, but the result is the same. What else can I try to get the hardware to work? I have screenshots attatched showing the running fieldbus and the log messages. EDIT: One clarification: the "device log" that shows the error is the PLC, not the ethercat terminal. The log of the terminal itself shows neither errors nor warnings. BR Robert
Last updated: 2023-11-29

Post by arundara on Variable Sync Issue In Soft Plc Redundancy CODESYS Forge talk (Post)
Hello, I was trying to create a redundancy POC for our application where we read data from few modbus tcp devices. As there is a limitaion that modbus tcp device support only for single master device, we wanted to test how the variable sync happens in redundancy mode. For that i have used the redundancy sample code added a variable "b" under a condition. What i observed was while active controller is running, if passive controller is powerup, passive controller is able to sync all the data configured for redundacny. But after that the variable data which resided under a condition is not synching from active to passive controller. I have attached the image where i have highlighter the variable. Can some help me to understand how redundacny work in codesys soft plc and if there is a solution to sync variable which are under condition, please explain the same or suggestion to achieve the same. Hardware - Raspberry Pi (2 qty) Redundancy licence used - yes in both controllers. Codesys runtime - 4.9.0.0 Codesys software version - V3.5 SP19 if i have posted this question in wrong section, please do let me know in whcih section i have to post this question.
Last updated: 2023-12-01

Post by user3000 on Can't find an Extended Pulse Timer (TP and LTP) CODESYS Forge talk (Post)
Hello, For my program I need an extended pulse timer, which can be referred to as a retriggerable pulse timer. Where every rising edge of the input resets the elapsed time zero, extending the lenght of the output pulse. The Codesys pulse timer (TP) is a one-shot timer and only resets the elapsed time with the falling edge of the input. There is also a pulse timer (LTP) in codesys, but in my simulation it was also functioning as a one-shot even though the description sounds like LTP should be retriggerable. I have uploaded some timing plots from another PLC program for reference. I am looking for a timer equivalent to the "TEP" diagram. Is there an Extended Pulse Timer in Codesys? Maybe there is a way to manipulate the input so it resets the elapsed time outside the function block?
Last updated: 2023-12-06

Post by ofey on Testing of Codesys program CODESYS Forge talk (Post)
Hi! I thought to hear what you guys think is the best way to test the program in my scenario. I have some PLC programs that have been made and deployed on different PLC's. The program has added the specific devices and IO that is applicable. I have made a test environment for everything outside of the PLC, ie. the same SCADA system that is talking to the PLC, and a program running locally is simulating the plant (level regulation of different tanks). Pr. now I have had to manually change the variables that are reading/writing values from the IO so they read/write via OPC instead. I also have to change the device tree from the specific PLC rack, to the soft PLC. So I kind of end up with two different programs that I have to maintain. I was just wondering if you believe there is an easier way to do this. So I can have the exactly same program and kind of switch between the soft mode, and the "real" mode.
Last updated: 2023-12-07

Post by ph0010421 on How to create a stopwatch? CODESYS Forge talk (Post)
Do you need an 'hours-run' counter? And 1 second resolution is ok? I think you're over-thinking it. (The task time needs to be < 1second) Have a look at the LAD... Then, the time in seconds can be made into hh:mm:ss with this FUNction Declarations: FUNCTION funSecondsToStringTime: string VAR_INPUT InSeconds: UDINT; END_VAR VAR AsString: STRING; Minutes: UDINT; Hours: UDINT; Seconds: UDINT; MinutesAsString: STRING(2); HoursAsString: STRING(2); SecondsAsString: STRING(2); END_VAR and the code: Hours := InSeconds / 60 / 60; //Derive hours Minutes := (InSeconds - (Hours * 60 * 60)) / 60; //Derive minutes Seconds := InSeconds - ((Hours * 60 * 60) + (Minutes * 60));//Derive seconds HoursAsString := UDINT_TO_STRING(Hours); MinutesAsString := UDINT_TO_STRING(Minutes); SecondsAsString := UDINT_TO_STRING(Seconds); IF LEN(HoursAsString) = 1 THEN HoursAsString := CONCAT('0',HoursAsString); END_IF; IF LEN(MinutesAsString) = 1 THEN MinutesAsString := CONCAT('0',MinutesAsString); END_IF; IF LEN(SecondsAsString) = 1 THEN SecondsAsString := CONCAT('0',SecondsAsString); END_IF; AsString := CONCAT(HoursAsString, ':'); //assemble string AsString := CONCAT(AsString,MinutesAsString); AsString := CONCAT(AsString,':'); AsString := CONCAT(AsString, SecondsAsString); funSecondsToStringTime := AsString;
Last updated: 2023-12-08

Post by ragarcia on Error while using UpdateConfiguredIPSettings to change IP address CODESYS Forge talk (Post)
Hello everyone, I am trying to change dynamically by code the IP address of a Weidmuller controller. So I am basically using IoDrvEthernet library to use UpdateConfiguredIPSettings function but I am getting constantly the 'INVALID_STATE' error. Even though I am following a procedure it should work: * First I added on the config file of codesys the following: [SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1 Adapter.1.Name="eth1" Adapter.1.EnableSetIpAndMask=1 * Secondly I am first disabling the ethernet interface by using Ethernet_0.Enable = FALSE and then executing DED.Reconfigure. After that, I run the Ethernet_1.updateConfiguredIPSettings Code: Ethernet_1.Enable:= EnableDisable; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1, xError=> ErrorReconfigure, eError=> ErrorCodeReconfigure); IF Reconfigure.xDone THEN ErrorCodeIP:= Ethernet_1.UpdateConfiguredIPSettings(IPAddress:= newIP, SubnetMask:= newMask, Gateway:= newGW); END_IF IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Ethernet_1.Enable:= TRUE; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1); IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Can someone help me? Thank you. All I am trying is to find a way to change dynamically with code, the IP addresses of my controller (2 ethernet ports).
Last updated: 2023-12-11

Post by giackanto on Eoe issues with Windows and Linux CODESYS Forge talk (Post)
Hello, I've been trying to use EoE for communication between a Windows PC and an M753 drive from Control Technique. Despite following some online guides (https://content.helpme-codesys.com/en/libs/EtherCATStack/4.3.0.0/Ethernet_over_EtherCAT/fld-Ethernet_over_EtherCAT.html) I haven’t had any success. Both are connected to a Debian device where RTE is running: The PC is connected via the Ethernet port. The drive is connected via the EtherCAT port. I'm unable to ping the drive from my Windows PC. Here is my configuration: On Debian: (See attachments 1, 2, 3) enp1s0 = Ethernet port enp2s0 = EtherCAT port tap2 = TAP device IP forwarding and routes are both configured. On Windows: (See attachments 4, 5) On Codesys: (See attachments 6, 7) Version: Windows 11 Debian GNU/Linux 11 Codesys 3.5.17 Control for Linux SL 4.7.0 EtherCAT 4.4.0 With this configuration, I can ping the TAP device, but not the drive (See attachment 8). Could someone explain how to properly configure all these settings? Thank you, GA
Last updated: 2023-12-19

Post by spiessli on Softmotion axis to CANopen Maxon IDX drive CODESYS Forge talk (Post)
Thanks for the advise, indeed, this was somewhat, what my intention was. I tried around again with EDSes and DCFs, anyway. It appears that the DCFs end up in a subfolder in the attach device dialog. Astonishingly, when attaching the DCF version I get a device in the device tree, where I can add a SoftMotion axis, whereas when I attach the device not in the subfolder, then I cannot. Further astonishingly, when looking in the CANopen parameters in supported profiles, "402" is listed in the case of the DCF variant, whereas in the EDS variant "0" is shown. Comparing EDS and DCF files I cannot guess, where the difference is coming from. I cannot tell either why I have always attached the EDS variant and apparantly never the DCF variant. As I am not in the lab right now, I cannot test if the connection actually is working. Thanks again, spiessli
Last updated: 2024-01-07

Post by vipul on Multicast udp CODESYS Forge talk (Post)
Hi, Good afternoon can anybody help me with UDP Multicast code. I am not able to send or recieve data when code is dumped on linux device. Below is my code. Declaration: PROGRAM udp_multicast VAR oneTimeFlag :UINT :=0; state: INT:=0; driver: UDP.UDPDriver; //port : UDP.Port;//moved to GVL src_ipAddr_ud: UDINT; src_ipAddr_st:STRING := '192.168.127.155';//'192.168.1.155';//ipms ip address dst_ipAddr_ud:UDINT; group_ipAddr_st:STRING := '239.1.5.10'; //group_ipAddr_ud:UDINT; result: SysTypes.RTS_IEC_RESULT; //result of recieve function. bind: UDINT; //result of binding. resultCreate:SysTypes.RTS_IEC_RESULT;//result of port creation. timer:BLINK; temFlag :INT:= 0; post:INT :=0; checksumFunc:checksumXor; localStringBuf:STRING[500]; chksum:BYTE; dataBuffer:POINTER TO BYTE; checksumString:ARRAY[0..5] OF BYTE; recvSize:__XINT; errorCode:UDINT; joinGroupErrorCode:UDINT; END_VAR ************8 Implementation: IF oneTimeFlag <> 1 THEN oneTimeFlag:=1; resultCreate := driver.CreatePort(ADR(GVL.port)); src_ipAddr_ud := UDP.IPSTRING_TO_UDINT(sIPAddress:= src_ipAddr_st); GVL.group_ipAddr_ud := UDP.IPSTRING_TO_UDINT(sIpAddress:= group_ipAddr_st); GVL.port.IPAddress := src_ipAddr_ud; GVl.port.ReceivePort:= GVL.src_port;//port on which messages are expected. GVl.port.SendPort := GVL.dest_port; GVl.port.OperatingSystem := 0; //0- any system GVL.port.Socket :=3; //3- socket type is multicast bind := GVL.port.Bind(udiIPAddress:=src_ipAddr_ud,); GVl.port.JoinGroup(udiGroupAddress:= GVL.group_ipAddr_ud,udiInterfaceAddress:= src_ipAddr_ud,eLogCode=>joinGroupErrorCode); END_IF timer(ENABLE:=TRUE,TIMELOW:=T#100MS,TIMEHIGH:=T#100MS); IF timer.OUT = TRUE THEN GVL.port.Send(udiIPTo:=GVL.group_ipAddr_ud,GVL.dest_port,pbyData:=ADR(GVL.writeData),diDataSize:=SIZEOF(GVL.writeData)); ELSE SysMemSet(ADR(GVL.readData[0]),0,SIZEOF(GVL.readData)); result := GVl.port.Receive(ADR(GVL.readData),diDataSize:=SIZEOF(GVL.readData),udiIPFrom=>dst_ipAddr_ud,diRecvSize=>recvSize,eLogCode=>errorCode); SysMemMove(ADR(GVL.readDataBuf[0]),ADR(GVL.readData[0]),SIZEOF(GVL.readData)); END_IF post:=LEN(GVL.readDataBuf);
Last updated: 2024-01-14

Post by kevin123 on auto-answer dialog using system.prompt_answers CODESYS Forge talk (Post)
I am trying to do "update device" in a project which was saved in a different version of CODESYS using ScriptEngine, a dialog with 'Yes' and 'No' button popped up showing that "Do you want to upgrade the storage format for this project? -if you click 'Yes', storage format will be upgraded... -if you click 'No', storage format will not be changed..." I have to click the 'Yes' button automatically by scriptEngine. I know from others topics here in forum, that some dialogs can be auto-answered using system.prompt_answers. And I also get the messagekey of this dialog: Key: "<< No Key>>" Message: "Do you want to upgrade the storage format for this project? - If you click 'Yes',... i have tried using the system.prompt_answers command below, but the dialog was not auto-answered. system.prompt_answers["<<No Key>>"] = PromptResult.Yes Does someone know how to auto-answer the dialog using system.prompt_answers command with messagekey"<< No key>>"? or any suggestions to solve this issue, Thanks!
Last updated: 2024-01-26

Post by kevin123 on auto-answer dialog using system.prompt_answers CODESYS Forge talk (Post)
I am trying to do "update device" in a project which was saved in a different version of CODESYS using ScriptEngine, a dialog with 'Yes' and 'No' button popped up showing that "Do you want to upgrade the storage format for this project? -if you click 'Yes', storage format will be upgraded... -if you click 'No', storage format will not be changed..." I have to click the 'Yes' button automatically by scriptEngine. I know from others topics here in forum, that some dialogs can be auto-answered using system.prompt_answers. And I also get the messagekey of this dialog: Key: "<< No Key>>" Message: "Do you want to upgrade the storage format for this project? - If you click 'Yes',... i have tried using the system.prompt_answers command below, but the dialog was not auto-answered. system.prompt_answers["<<No Key>>"] = PromptResult.Yes Does someone know how to auto-answer the dialog using system.prompt_answers command with messagekey"<< No key>>"? or any suggestions to solve this issue, Thanks!
Last updated: 2024-01-26

Post by kevin123 on (no subject) CODESYS Forge talk (Post)
I am trying to do "update device" in a project which was saved in a different version of CODESYS using ScriptEngine, a dialog with 'Yes' and 'No' button popped up showing that "Do you want to upgrade the storage format for this project? -if you click 'Yes', storage format will be upgraded... -if you click 'No', storage format will not be changed..." I have to click the 'Yes' button automatically by scriptEngine. I know from others topics here in forum, that some dialogs can be auto-answered using system.prompt_answers. And I also get the messagekey of this dialog: Key: "<< No Key>>" Message: "Do you want to upgrade the storage format for this project? - If you click 'Yes',... i have tried using the system.prompt_answers command below, but the dialog was not auto-answered. system.prompt_answers["<<No Key>>"] = PromptResult.Yes Does someone know how to auto-answer the dialog using system.prompt_answers command with messagekey"<< No key>>"? or any suggestions to solve this issue, Thanks!
Last updated: 2024-01-26

Post by wbj0t on System libs and I/O Drivers CODESYS Forge talk (Post)
Hi everyone. My question about: where I can learn (read or watch) an info about codesys workflow through the system IO libs? I want to know how to implement I/O drivers by my self. In the system libs I see many interfaces, methods etc... But there is no explanation about them, just names of methods and fields of the FBs. I know about this page: https://forge.codesys.com/drv/io-drivers/doc/Generic/ There is so BIG the device description file and not so clear explaining of the attributes and elements, also some elements or attributes missed at it all. Yes, there are code examples on this page, but, so shortly and, for example, code about Modbus drivers is absent. And even if I try to add the IoDrvFB with lib, I get and error, something like: "failed to load IoDrvFB driver". And what about the book of codesys that written by Gary Pratt? Is there information about system libs and drivers in this book more clearly? Thank you :)
Last updated: 2024-02-02

Post by yannickasselin on Connect to remote PLC via local pc and teamviewer CODESYS Forge talk (Post)
Yes it is possible. I did it a lot of times using TeamViewer VPN. Unfortunately, TeamViewer VPN only works on Windows. If the remote PLC is a Codesys runtime running on Windows, you should be able to login directly using TeamViewer VPN if it is installed on the PC/PLC. If it is not Windows based, you can still do it but you need to have a Windows based PC acting as a gateway in the middle. In this case you need to enable IP Forwarding on the Windows remote PC (the gateway) and you need to setup the gateway IP address on the PLC to be the address of the Windows PC. Then you need to add a route on your local PC to point to the gateway PC for Codesys communication. I know it may not be detailed enough but I did not want to make a whole tutorial on how to do it. Bottom line, it is possible. I do it all the time.
Last updated: 2024-02-02

Post by fredsta on Unable to load dynamic modules (Download failed: Application=Application) CODESYS Forge talk (Post)
Hey there, I am currently trying to find a good solution for the communication between CODESYS Control on Raspberry Pi and "the rest of the world", i. e. the things apart from CODESYS on my linux. My first approach was to use the c-integration. So I created a lib, defined extern fbs, compiled the code on my Pi using the SDK and put the .so into my lib project. When I try to log into the Pi and load the program, I get the error message which you can see in the attached picture. "Die dynamischen Module der C-Integration konnten nicht auf das Laufzeitsystem geladen werden" is german and means roughly "the modules from the c-integration could not be loaded onto the runtime system." Is this normal? Am I doing something wrong? I will have a look at the unix domain socket thing next, as I am still in the process of finding the best solution for the communication.
Last updated: 2024-02-15

Post by dtamm on How to read string from CharBufferPtr? CODESYS Forge talk (Post)
I am trying to implement a mechanism to send alarm SMS. For this, I have created an Alarm Class with a Notification Action which calls a POU. This POU implements IAlarmNotifiable making it selectable in the Alarm Class configuration. IAlarmNotifiable has an Execute method which is called by the alarm class. Now, I want to extract the alarm message of the triggered alarm. The Execute method comes with a VAR_INPUT itfAlarm: AlarmManager.IAlarm which supplies a method called GetMessage. The help text says: Returns the message text, that has been configured for the alarm. The result is a pointer to the buffer, where the message text is stored The type of the result is CharBufferPtr, and at some place I read that it can be interpreted as a pointer to string. But I cannot manage to extract the alarm message, all I get are numbers. I have tried the following: psAlarmText := itfAlarm.GetMessage(__SYSTEM.TYPE_CLASS.TYPE_STRING)^; sAlarmText := TO_STRING( itfAlarm.GetMessage(__SYSTEM.TYPE_CLASS.TYPE_STRING)^ ); So how do I get access to the alarm message as clear text? (In this case, "Larm 1")
Last updated: 2024-02-21

Post by acc00 on Main Task cycle too long leading to PLC Fail CODESYS Forge talk (Post)
I have 2 Wago PFC200 PLC, running with Runtime SP19 Patch 5, with the Redundant application. The PLC communicates as Modbus Master with at this moment 15 Modbus Slaves -later there will be 28 in total- (Drives, Power management units,...). These devices are connected in 2 rings (1 ring of Drives, 1 ring of Power Management units), with 2 Managed Moxa Switches being part of the ring. Each PLC is connected to one of these switches. The issue I'm encountering is that the Cycle time of the Active PLC goes very high when I'm closing the Drive ring (simulating an issue on one Cabinet supply, resulting in that one Drive shut down, which can happen on field quite often). As a result of this long cycle, the PLC fails and goes to Exception, and the Passive PLC does not take control of the system. A normal cycle is around 30ms for the Main task, and a few ms for the Ethercat task. When I monitor with Profiler, I see that in this Maximum Cycle, the main Task is only taking 13ms, so I'm not sure where the PLC is hanging for so long. Is the remaining cycle time the Redundant management/sync or something else? Thank you in advance.
Last updated: 2024-03-08

Post by anlebr on Codesys Communication Manger - Required information model version exists in the model repository but is not found CODESYS Forge talk (Post)
Hi I am trying use the Codesys Communication Manager to set up an Opc ua server with a custom information model. As a start I am using the Boiler model available on Opc foundations github page. I am testing with a Wago CC100 and using Codesys V3.5 SP19 Patch 6. I get the following error: Communication Manager [Device: PLC Logic: Application]: The information model http://opcfoundation.org/UA/ is required by http://opcfoundation.org/UA/Boiler/ with a minimal publication date from 15/12/2023 but the device has only a model from 15/09/2021 installed. Probably the information model from 15/09/2021 is missing in the information model repository. The error message does not make sense to me. Should it not be “Probably the information model from 15/12/2023 is missing in the information model repository”? Anyway, both versions are available in the repository. How can I solve this?
Last updated: 2024-03-13

<< < 1 .. 54 55 56 57 58 59 > >> (Page 56 of 59)

Showing results of 1467

Sort by relevance or date