Hello, I would like to make a small program for garage door control which should generate analog output 10-0 V DC gradually . Change of analog output should be triggered by end switch located between lower and upper end switches, used to stop the door when they are completely open or closed (this switch should be located app. 40 cm above the lower end switch). 10-0V DC output should be used for PWM controller with control voltage input 0-10V DC. To resume, the whole idea is to make a program which should gradually slow down the door when it reach the end switch located app. 40 cm above the lower end switch. Any idea how to make that?
Hi there, I just wanted to show the process how an analog input signal can be read and used. At the time 17:40 I used my voltameter and Factory IO to show that I've calculated the input voltage correctly.
Normaly when i want to cmd an analog output , firstly i use NormX to convert int to real to get the 0.0 or 1.0 which is 0 or 100 % in output; and use this % to get the value i want in real type with scaleX. If i want to cmd an analog ouput i use this real type which was convert in scaleX before , i take this MD.X and i use different compares blocs and moov bloc to send another MD.X2 to another NormX and scale X to cmd and regulate the analog output in term of the analogiq input and it is work very well
Thank you so much mister , I've watched the Norm and scale episode but I still can't know how it really worked here, in that episode you put in scale the number 0.37 and the MIN value is 0 and the MAX value is 100 so the output was 37 but here I didn't understand what happened can you explain and sorry for the long comment
Hi there, In this video ( th-cam.com/video/G22LMPCFPmg/w-d-xo.html ) the Norm and Scale instructions were explained. the Scale instruction finds a linear function to convert 0 and 1 to MIN and Max numbers. the founded linear function is used for others numbers too. the Norm instruction works inversely.
Thank you , I've watched the video in the link and I saw the equations of the scale and the norm instructions ,but why did you use Norm then scale of the value? I mean isn't it similar to opposite of the opposite value is the same value?
Hello,
I would like to make a small program for garage door control which should generate analog output 10-0 V DC gradually . Change of analog output should be triggered by end switch located between lower and upper end switches, used to stop the door when they are completely open or closed (this switch should be located app. 40 cm above the lower end switch).
10-0V DC output should be used for PWM controller with control voltage input 0-10V DC. To resume, the whole idea is to make a program which should gradually slow down the door when it reach the end switch located app. 40 cm above the lower end switch.
Any idea how to make that?
This comment section is for answering questions related to the video.
Hi Sir, can you please tell me how does the %MW4 will be related to Voltage_Ch0? Why should we even need that?
Hi there, I just wanted to show the process how an analog input signal can be read and used. At the time 17:40 I used my voltameter and Factory IO to show that I've calculated the input voltage correctly.
@@plcgoods ok sir thank you.
Normaly when i want to cmd an analog output , firstly i use NormX to convert int to real to get the 0.0 or 1.0 which is 0 or 100 % in output; and use this % to get the value i want in real type with scaleX.
If i want to cmd an analog ouput i use this real type which was convert in scaleX before , i take this MD.X and i use different compares blocs and moov bloc to send another MD.X2 to another NormX and scale X to cmd and regulate the analog output in term of the analogiq input and it is work very well
Hi there, Thanks for your message.
thanks for contacting us
Thank you so much mister , I've watched the Norm and scale episode but I still can't know how it really worked here, in that episode you put in scale the number 0.37 and the MIN value is 0 and the MAX value is 100 so the output was 37 but here I didn't understand what happened can you explain and sorry for the long comment
Hi there, In this video ( th-cam.com/video/G22LMPCFPmg/w-d-xo.html ) the Norm and Scale instructions were explained. the Scale instruction finds a linear function to convert 0 and 1 to MIN and Max numbers. the founded linear function is used for others numbers too. the Norm instruction works inversely.
Please watch some more videos
Thank you , I've watched the video in the link and I saw the equations of the scale and the norm instructions ,but why did you use Norm then scale of the value? I mean isn't it similar to opposite of the opposite value is the same value?
I'm watching it and it's really helpful! Thank you so much for your effort
thanks, PLCgooods.
You're welcome!!