PLµX home PLµX help main page

Analog instructions.

Analog 8-bit input.

  1. Analog instructions.
    1. Analog 8-bit input.
    2. Analog inputs and simulation.
    3. Practical example.
    4. Hardware in action.
Top

Analog 8-bit Input.

Shortcut: none.
Click on More Instructions in the Instructions menu.

This function add a Analog input instruction to the ladder diagram.
Click on the More Instructions button in the toolbar and select an area in the ladder diagram where you want to place the instruction.

hlp.more.instructions.menu

This brings up a dialog box, which allows the user to select counters, timers,...
Select a Analog 8-bit Input and click on the OK button.

Img_plµx_help

An Add Analog Converter dialog box will appear. You can make the following settings in the dialog box:

  1. Number: Give the Analog Input a unique number between 0 and 31.
  2. Name: An unique name (not required) for the counter.
  3. Set Value: Value between 0 and 255.
  4. Select a comparison operator:
    1. '=' EQUAL: If the analog input value and set value are equal, the instruction is logically true. If these values are not equal, the instruction is logically false.
    2. '<' LESS THAN: If the analog input value is less than the set value, the instruction is logically true.
    3. '>' GREATER THAN: If the analog input value is greater than the value at source B, the instruction is logically true.
  5. Comment: Place a comment for the instruction

The input field "name" and "comment" is not required.


hlp.adc.dialog

The Analog Instruction is placed in the ladder diagram.

hlp.adc.placed


Top


Simulation state and analog inputs.
In simulation state it is possible to test 8 analog inputs (ADC0-ADC7).

hlp.adc.simulate

Top

Practical example.

plux.ladder.adc.test1.png
Creation of the ladder diagram.

plux.ladder.adc.test2.png
Create the .obj file.

plux.ladder.adc.test3.png
Download obj file to the gnublin board.

plux.ladder.adc.test4.png
Download succeeded.

plux.ladder.adc.test5.png
Execute the PLµX software on the gnublin board.

plux.ladder.adc.test6.png
PLµX software is started.


Hardware in action.

plux.ladder.adc.test7.png
Hardware setup.


plux.hw.adc.test.png
Jumper settings for GNUBLIN Module-ADC.

Information about hardware ADC interface. More...


Top