![Galil Motion Control RIO-47 series
RIO-47100 Скачать руководство пользователя страница 79](http://html1.mh-extra.com/html/galil-motion-control/rio-47-series-rio-47100/rio-47-series-rio-47100_user-manual_558776079.webp)
These integer values will also be returned when accessing the analog inputs by the API calls in C/C++
or Visual Basic.
The AQ command also configures the analog inputs to be either 8 single ended (default) or 4
differential inputs.
The AA command is a trippoint that halts program execution until the specified voltage on an analog
input is reached. The third field of the AA command controls whether the trippoint will be satisfied
when going higher or lower than the voltage. With a command such as AA 1,4.5,0 - if the specified
voltage is exceeded prior to arrival at the AA command, the program will continue to execute without
a pause. Analog inputs are useful for reading special sensors such as temperature, tension or
pressure. The range of AA is dependant on the AQ setting. Here are some examples of using the
Analog inputs:
Instruction
Instruction
JP #C,@AN[1]>2
Jump to A if analog input number 1 is greater than 2 volts
MG@AN[2]
Display the analog voltage reading on input 2
AA 1,4.5,0
Wait until the voltage on input 1 goes above 4.5V
AA 1,3.2,1
Wait until the voltage on input 1 goes below 3.2V
Analog Outputs
Analog output voltage is set with the AO command. The AO command has the format AO m,n where
m is the output pin and n is the voltage assigned to it. The analog output voltage is accessed with the
@AO[n] function where n is the analog output channel. Analog output modules come with a
resolution of 12 bits (16-bit optional). The Analog Output voltage range is configurable using the DQ
command when using RIOs with the ±10V configurable option. Use the ID command to see the
model number of the RIO.
Note: When analog output values are accessed from the Data Record or from the Record Array
function, the returned value will be an integer number that represents the analog voltage. For an RIO
with 0-5V analog output option, the equation used to determine the decimal equivalent of the analog
voltage is as follows:
N= ((V-Vlo)*4095)/(Vhi-Vlo)
Where N is the integer equivalent of the analog voltage, V is the expected analog voltage, Vlo is the
lowest voltage in the total range (0V) and Vhi is the highest voltage in the total range (5V).
These integer values will also be returned when accessing the analog inputs by the API calls in C/C++
or Visual Basic.
The AO command can also be used to set the analog voltage on ModBus devices over Ethernet
Instruction
Instruction
AO 7,1.5
Set the output voltage on output 7 to 1.5V
MG@AO[2]
Display the analog voltage reading on output 2
Analog Process Control Loop
A Process Control Loop allows closed loop control of a process or device. RIO models with Standard
Memory have two independent PID filters to provide process control of two devices simultaneously.
The
Expanded Memory
models have a total of 6 PID loops available. Analog Process Control Loops
are only available on the RIO-472xx when the AO Option (SCB-48608) is ordered. The set of
commands shown in the table below are used to set the structure of the Process Control Loop.
Chapter 5 Programming ▫ 79 RIO-47xxx Rev 1.0r