5/3/2022 6:45 PM | |
Joined: 11/24/2015 Last visit: 6/13/2022 Posts: 24 Rating:
|
Gents I have a function block to read analogue input value from card. The below program is for this function. Can you please explain to me this function and if you can convert it to Ladder. also see the block of this function in picture. ************************* L #IN0 L 32767 <=I = #IO8 L #IN0 L -1728 >I A #IO8 = #IO8 L #IN1 L #IN2 -R T #TEMP9 L #IN0 ITD DTR L #TEMP9 *R L 2.764800e+004 /R L #IN2 +R L #IN3 +R AN #IN5 JC M001 L #IN4 M001: T #OUT6 L 1.000000e+001 *R TRUNC T #OUT7 *********************** Thanks ------------------------------------------------------------------------------------------ |
Last edited by: naceurmans at: 05/03/2022 18:47:31Last edited by: Jen_Moderator at: 05/04/2022 05:55:43New subject after splitting |
|
5/4/2022 1:09 PM | |
Joined: 6/24/2013 Last visit: 8/21/2025 Posts: 1693 Rating:
|
Hi Converted function attached as a PDF note: in STL accumulators are used to store intermediate results for immediate use. in LAD you need use temp variables. Attachment!AI_Convert.pdf (550 Downloads) |
This contribution was helpful to
2 thankful Users |
Follow us on