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.
  1. Request a shared memory slot from the operating system for each serial port.
  2. Start the detector process on each serial port.
  3. Read each shared memory location for data.
  4. Format the data for omwr(RPC client program)
  5. Call omwr
  6. Monitor mill out of service data and log pulveriser trips
  7. 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
}

[Previous] [Contents] [Next]

Compiled by Darryl Bond
Mail to:Darryl Bond

Check Date for latest Update History