Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively.Register now to secure your spot!
M340 analog input samplig
Modicon PAC Forum
A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-07-0204:39 AM
M340 analog input samplig
Hello,
with Control Expert I have some problem to understand how to sample AI value connected on AMI0810 with M340.
(now i have a Siemens S7-1200 simulating a ramp up and sending it every 2 seconds trough an analog output to an analog input of the AMI0810 in 0-10v or 0-20mA)
check next image for the wave pattern, the ramp up duration is about 50 ms, then the value go back to 0 for 2 seconds
I've disabled 7 analog input, to have faster sampling rate from the module (1ms + 1ms for channel active)
created a FAST task cycling every 5ms, where:
if the RAW value of the AI (%IW0.6.7 in that case) is growing and is greater than X and lower than Y, store that value inside an array I suppose to have at least six to ten stored value before the next AI signal will arrive.
but the stored value are all the same (or two different value), doing a trace on the input signal I cannot see the curve sent by the Siemens PLC, but only 3 step
Seems strange the timing into the trending tool, seems like 3ms every step,
With the oscilloscope I can confirm that the output from siemens is OK
I cannot understand what I'm doing wrong for sampling the data (the program seems working correctly, just the analog value seems not updated every cycle)
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-07-0309:06 PM
Worth checking. Is the AI card updates allocated to the master task (default setting) or the fast task? Click on the AI card in the rack image and check that the update task is correct. If it is synchronised with the master task it will only update at the master task rate.
Trinxs Senior Technical Sales Consultant - PAC
This is a heading
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.