Jump to content

reading analog input

Recommended Posts

Hi i want to read analog input from my distance measuring sensor (SICK DT35) then i want to scale and see the data(milimeter) in the Jz20  r16 plc screen.

i made three wiring :

1.sensor "supply voltage" goes to PLC "V+" terminal 

2.sensor "0 V" goes to PLC "0V"

3.sensor "switiching output" goes to "AN0" terminal of the PLC


i can communicate on COM port 10 of my PC to PLC and i can download and upload the  program.


İ dont know how to write code and how to make addressing with hardware and software input terminal in U90 


Can you help me  

Link to comment
Share on other sites

Did you configure the outputs in the hardware configuration of VisiLogic? 


If not, that should be your first step.  That allows you to define where (which memory integer) you read the analog value into and the precision (10 bit or 12 bit)


From there you can use the linearize function block to work with the number however you need.

Link to comment
Share on other sites



In U90, if you go into the Hardware Configuration and click the unit you are working with, you can set up the IO points.


If you click on the Analog Input tab, you can link a memory integer to your analog input channel 0.  When this is linked, you and then go to the project navigation and choose the "Memory Intergers" option, and choose the same memory integer you linked to the input.  In this section, you will be able to linearize the value according to the bit resolution of that input.


Hope this helps.

Link to comment
Share on other sites

thanks for your suggestions :)


I link AI 0(analog input ) to MI 0(memory integer)  in hardware configuration tab


but when i go to ladder diagram and select input terminal i couldnt see MI addressing 


what function should i use in ladder diagram and i can see the input results on display screen ?


( i made analog input wiring according to current , is there any incoordination with sensor (SICK DT35) characteristic ? )

Link to comment
Share on other sites

  • 2 weeks later...



You should be able to see the MI register change when you go online with the controller as the signal from the sensor changes after you have linked the MI to the input register.


If you want to link this input value to an element on screen, go to the display editor, select the amount of digits you wish to display on, and link the variable for the MI register you have your input linked to.


I do not see any reason right away why the sensor you chose will not work with out controllers.   Please ensure you have correct wiring, and test the signal with a multimeter.


Let me know if this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...