Flame Detection Scanning Program
The scanner process /usr/local/flame/flm_det has to perform the following functions. It is invoked by the script /ram/bin/flamedetector which supplies the IP address of the server and the unit number as arguments. It does not use the hostname to prevent name service lookup each scan and therefore disk access.
- Request a shared memory slot from the operating system for each serial port.
- Start the detector process on each serial port.
- Read each shared memory location for data.
- Format the data for omwr(RPC client program)
- Call omwr
- Monitor mill out of service data and log pulveriser trips
- Create an online log of current detector data and status /ram/fd_status
The pseudo code is as follows
startup {
open /tmp/fdexec for write
parse /ram/bin/fd_proc.list to produce device,rate,shared variable
for each entry
create shared memory segment
add line in startup script file
done
close /tmp/fdexec
run /tmp/fdexec to start up each serial port process
}
loop forever {
foreach shared memory location {
format each part ready for omwr
}
call omwr with the data to write the data to the Foxboro system
write the data to the ram disk log file /ram/fd_status
wait 5 seconds
}
Compiled by Darryl Bond
Mail to:Darryl Bond
Check Date for latest Update History