Fem-03 flow monitor – AW Gear Meters FEM-03 User Manual
Page 40

FEM-03 Flow Monitor
Operation and Programming Manual
39
Read/Write Variables
Address
Length
Data (Cont’d)
Serial Speed
00C2H
1Byte
1=9600 Baud
2=19200 Baud
3=38400 Baud
4=57600 Baud
Unit Number (communication offset)
00BFH
1Byte
Default is 01
FEM Serial Command Variables
Address
Length
Data
Serial RESET TOTAL Command
00C4H
1Byte
will return to 0
1=Resets Job A
2= Resets Job B
3= Resets Jobs A and B
4=Resets Grand and Job A
5-Resets Grand and Job B
6=Resets All
Update EEPROM Command
00C5H
1Byte
will return to 0
Any number except 0
moves all Run time Variables to
the EEPROM location.
RELAY Override Command
00C6H
1Byte
write zero to release
80H Relay 1 and Relay 2 ON
81H Relay 1 OFF and Relay 2 ON
82H Relay 2 OFF and Relay 1 ON
83H Relay 1 and 2 OFF
Force mA Output Command
002DH
2Bytes
MSB first
(FEM-03 and -03A2 only)
Writing any number between 1
and 4095 (0001Hex and 0FFF Hex)
activates the mA output where: 1
= .005mA and 4095 = 20mA.
Writing a 0 returns the control to
the FEM-03.
Example QBASIC Program for Protocol Communications
Below is a QBASIC program that allows the user to communicate with the FEM-03 by initiating serial
port #1 at 9600 baud and prompting the user for read or write strings. The program assembles strings
following the OPTO 22 protocol format described on page 34. All string data must be in Hex notation. Do
not enter the > sign before the string and do not calculate the checksum. The program calculates the
checksum, assembles the string, adds the cr, and sends the string to the FEM.