SOP Sample Gate and SbyC Operating Instruction for John Day Juvenile Facility
From PTAGISWiki
Standard Operating Procedure
| |
Subject:
| SOP Sample Gate and SbyC Operating Instruction for John Day Juvenile Facility
|
Author:
| Troy Humphrey
|
Approved by:
| Don Warf
|
Contents
|
Objective
The Objective of this SOP is to give site personnel a working knowledge of the various functions available to them for entering sample rates and making up samples that are missed.
Scope
This SOP is for site personnel responsible for entering sample rates and strictly pertains to John Day Juvenile fish facility. The sample gate is controlled by a Programmable Logic Controller located near the separator. Commonly referred to as a PLC, this device is accessed by a Redlion Human Machine Interface (HMI) located in the Wet Lab. The HMI took the place of the PV600 (see previous versions of this SOP). The HMI acts as an operator interface to the PLC allowing the user to enter and view different parameters associated with Sample Gate settings and controls. All functions of the sample gate are set by HMI operator inputs and control switches mounted on the panel located below the HMI.
Responsibilities
The personnel responsible for entering sample rates are determined by the site SMP biologist.
Procedure
Overview
- Through out this manual the following formatting shall apply:
- PAGE TITLE , PARAMETER HEADING or SCREEN NAVIGATION.
- Used to indicate the current graphic being displayed or what the value below the heading represents or what screen will appear if the box on the screen is touched.
- ‘PARAMETER’
- A user settable value such as ‘SAMPLE PERCENT’.
- Switch or SWITCH SETTING.
- User settable switches that effect gate and sample functionality such as: The SbyC Enable is set to OFF.
- PAGE TITLE , PARAMETER HEADING or SCREEN NAVIGATION.
- The HMI is a touch screen operator interface. The user can simply touch certain areas on the screen to perform specific tasks. The screens have different colored boxes and text that will help the user identify their functionality.
- Colored boxes with white text and blue background indicate the state of parameters such as ‘SAMPLE ON’ or ‘DDS MODE’.
- Boxes that have their text and back ground colors opposite of the colors of the page are parameters the operator can manipulate.
- Light blue bordered boxes with light blue text are screen push buttons that allow the user to navigate to different screens or toggle inputs such as the SYNC button.
- Touch anywhere on the screen if the screen is black due to the screen saver being on.
- The MAIN screen will appear and look similar to the screen displayed below.
- If a screen other than the one below appears press the RETURN box located in the lower section of the screen.

- In the upper left and right corners the ‘SAMPLE GATE MODE’ is displayed. These will change color and text depending on the state of the Sample Mode switch located below the HMI. The Sample Mode switch functionality is explained in detail further on in this document.
- The current ‘TIME’ is displayed in the box below the heading LOGICAL CLOCK TIME. This can be set by touching the SET TIME button on the lower left section of the screen. Setting the ‘TIME’ is explained in detail further on in this document.
- The current ‘SAMPLE PERCENT’ for the Sample Gate will be displayed below the heading of SAMPLE PERCENT. This can be set by touching the SET PERCENT button on the lower middle section of the screen. Setting the 'SAMPLE PERCENT’ is explained in detail further on in this document.
- The current ‘OPENINGS PER HOUR’ for the Sample Gate will be displayed below the heading of OPENINGS PER HOUR. This can be set by pressing the SET OPENINGS button on the lower right section of the screen. Setting the ‘OPENINGS PER HOUR’ is explained in detail further on in this document.
- If the Sample Gate is in sample, the ‘SAMPLE TIME REMAINING’ will be displayed below the heading of SAMPLE REMAINING. The ‘TIME TO NEXT SAMPLE’ will be display below the heading of TIME TO NEXT SAMPLE.
Changing the Sample Percent
From the MAIN screen touch the box with the text SET PERCENT. This will take you to a new screen which looks like the screen below.

- To set the ‘SAMPLE PERCENT’, touch the box on the left, below the heading of PERCENT.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter any percent between 00.001% and 99.999% and press the enter button. This will enter the new ‘SAMPLE PERCENT’.
- If you decide not to enter a new sample percent then press the exit button on the numeric keypad, this will close the keypad with out changing the value.
- The PLC will compare the current ‘SAMPLE PERCENT’ to the ‘SAMPLE PERCENT’ just entered. If there is not a change the PLC will ignore the entry. If you change the ‘SAMPLE PERCENT’, you will need to set the ‘HOUR’ and ‘MINUTE’ at which you want the change to occur.
- Setting the ‘HOUR’ parameter: Touch the box below the heading of HOUR.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter any hour (in military time) between 0 and 23 and press the enter button. This will enter the ‘HOUR’ you would like the new ‘SAMPLE PERCENT’ to take effect. To return to the main screen touch the RETURN button.
- If you decide not to enter a new value for the hour in which you wish the sample percentage to change then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- Setting the ‘MINUTE’ parameter: Touch the box below the heading of MINUTE.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter any minute between 0 and 59 and press the enter button. This will enter the ‘MINUTE’ you would like the new ‘SAMPLE PERCENT’ to take effect. To return to the main screen touch the RETURN button.
- If you decide not to enter a new value for the minute in which you wish the sample percentage to change then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- The ‘DDS THRESHOLD’ and ‘DDS MODE’ are explained further on in this document.
- Press RETURN located in the lower left to return to the main menu.
Changing the Openings Per Hour
From the MAIN screen touch the box with the text SET OPENINGS. This will take you to a new screen which looks like the screen below.

- To set the ‘OPENINGS PER HOUR’, touch the box below the heading of OPENINGS.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter any opening per hour value between 1 and 12 and press the enter button. This will enter the new ‘OPENINGS PER HOUR’. To return to the main screen touch the RETURN button.
- If you decide not to enter a 'OPENINGS PER HOUR’ then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- The PLC compares the current ‘OPENINGS PER HOUR’ to the ‘OPENINGS PER HOUR’ just entered. If there is not a change the PLC will ignore the entry. If you change the ‘OPENINGS PER HOUR’, you will need to set the ‘HOUR’ and ‘MINUTE’ at which you want the change to occur.
- Setting the HOUR and MINUTE parameters is the same as described in Changing the Sample Percent section of this document.
Setting Divert During Sample
- When ‘DDS MODE’ is active the 3 Way Gate will divert fish from the sample position to either the center position or the divert (right SbyC leg) position when a PIT Tag is read on the monitor prior to the 3 Way Gate. The position of the 3-Way Gate will depend on the disposition of the PIT Tag read.
- The ‘DDS MODE’ can be activated manually or automatically. The DDS Mode switch is a 3 position switch located below the PV600 in the Wet Lab.
- The left position puts the ‘DDS MODE’ to AUTO.
- The center position put the ‘DDS MODE’ to OFF.
- The right position puts the ‘DDS MODE’ to ON.
- The state of the ‘DDS MODE’ is indicated on the SET SAMPLE RATE screen and the MAIN screen. The message in the box and the color of the box under the heading DDS MODE depends on the current ‘DDS MODE’. The graphic below shows the ‘DDS MODE’ to be in AUTO and ON.

- When the DDS Mode switch is in the AUTO position the user will have to enter the ‘DDS THRESHOLD’ at which they desire the system to switch into the ‘DDS MODE’ automatically. Once the ‘SAMPLE PERCENT’ is equal to or greater than the ‘DDS THRESHOLD’ the ‘DDS MODE’ will activate. If the ‘SAMPLE PERCENT’ drops below the ‘DDS THRESHOLD’ the ‘DDS MODE’ will become in-active.
- To enter the ‘DDS THRESHOLD’ press the box in the lower left corner of the SET SAMPLE RATE page under the heading of DDS PERCENT.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter any sample percentage value between 0.1 and 99.9 and press the enter button. This will enter the new ‘DDS THRESHOLD’.
- If you decide not to enter a new ‘DDS THRESHOLD’ then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- Approval to set the ‘DDS THRESHOLD’ value above or below 20% should be obtained by the site Biologist.
- To enter the ‘DDS THRESHOLD’ press the box in the lower left corner of the SET SAMPLE RATE page under the heading of DDS PERCENT.
- When the DDS Mode switch is in the OFF position the Sample Gate will remain in the sample position regardless of the disposition of PIT tags read while the gate is in an active sample.
- When the DDS Mode switch is in the ON position the ‘DDS THRESHOLD’ will be ignored. A change in ‘SAMPLE PERCENT’ will not affect the ‘DDS MODE’ when the switch is in the ON position The ‘DDS MODE’ will remain active until the switch is set to the OFF or AUTO position.
Sample Gate Control Switches
The panel located in the Wet Lab has three switches mounted below the HMI.
- Mode Switch
- The Sample Mode switch is the center switch and has three mode positions.
- The first position is to the left and labeled BYP. for BYPASS. With the switch in this position there will be no sampling.
- The second or middle position is labeled N.O. for NORMAL OPERATION. With the switch in this position, sampling will occur based on the ‘SAMPLE PERCENT’ and ‘OPENINGS PER HOUR’ entered.
- The third position is to the right and labeled 100% for 100% SAMPLE. With the switch in this position the sample gate will stay in the sample position unless the DDS Mode switch is in the ON position or the previous ‘SAMPLE PERCENT’ exceeds the ‘DDS THRESHOLD’.
- The Sample Mode switch is the center switch and has three mode positions.
- Divert During Sample
- The DDS Modeswitch is the right switch and has three mode positions.
- See the Setting Divert During Sample section of this SOP on how to set this switch.
- The DDS Modeswitch is the right switch and has three mode positions.
- SbyC
- The SbyC Enable switch is the left switch and has two positions
- When the SbyC Enable switch is in the left or OFF position no separation by code will occur.
- When the SbyC Enable switch is in the right or ON position separation by code will occur.
- The SbyC Enable switch is the left switch and has two positions
Test Buttons
- The panel located near the three way gate (Sample Gate) has two push buttons.
- TEST LEFT (Sample)
- This momentary switch is used to test the three way gate in the sample position. The switch will not work while the Sample Gate is in sample.
- TEST RIGHT (Divert)
- This momentary switch is used to test the three way gate in the divert position. The switch will not work while the Sample Gate is in sample unless the ‘DDS MODE’ is active.
- TEST LEFT (Sample)
- Located near the gate he two way gate (SbyC Gate) there is a push button.
- TEST
- This momentary switch is used to test the SbyC gate.
- TEST
Setting the 'TIME'
To set the ‘TIME’, from the main screen touch the light blue box in the lower left corner with the text of SET TIME. The following display will appear:

- The parameters you enter are for the Real Time Clock or RTC. The RTC is backed up by the battery and continues to run during a power outage. If the power outage is shorter than the battery life the correct time will be displayed when the PLC powers back up. If the power outage is longer than the battery life the RTC will reset to 0:0:0.
- To set the ‘HOUR’ press the box under the heading of HOUR.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter the current hour in military time and press the enter button. This will enter the new ‘HOUR’. To return to the main screen touch the RETURN button.
- If you decide not to enter a new ‘HOUR’ then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- To set the ‘MINUTE’ press the box under the heading of MINUTE.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter the current minute and press the enter button. This will enter the new ‘MINUTE’. To return to the main screen touch the RETURN button.
- If you decide not to enter a new ‘MINUTE’ then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- To set the ‘SECOND’ press the box under the heading of SECOND.
- A display box will appear over the screen with a numeric keypad. Use the numeric keypad to enter current second and press the enter button. This will enter the new ‘SECOND’. To return to the main screen touch the RETURN button.
- If you decide not to enter a new ‘SECOND’ then press the exit button on the numeric keypad, this will close the keypad without changing the value.
- Once the RTC has been set you need to sync the Logical Clock or LC to the RTC. This should be done every time you set the RTC.
- Press the light blue box with the text COMPARE to navigate to the comparison screen where you can then sync the LC to the RTC.
Comparing/Syncing the LC to the RTC
To compare the LC to the RTC press the light blue box with the text COMPARE. The following display will appear:

- The RTC and LC should be with in one second of each other.
- You can also use this page to determine if the sample rate is lagging or leading the LC.
- To sync the LC to the RTC press the light blue box with the text SYNC LC.
- To return to the MAIN page press the light blue box with the text RETURN.
3-Way Gate Status Lights and Displays
- Near the 3-Way Gate a set of lights has been installed. Each light is used to alert the SMP personnel on duty of different situations.
- The YELLOW light comes on 20 seconds before the 3-Way Gate rotates to the Sample position. This is referred to as the SAMPLE NEAR light.
- The GREEN light comes on while the 3-Way Gate is in the Sample position. This is referred to as the SAMPLE ON light.
- The RED light comes on when there is a problem with the 3-Way Gate. This is referred to as the GATE TROUBLE light.
- To check on the status of the 3-Way Gate navigate to the MAIN screen.
- From the MAIN screen touch the box with the text 3 WAY STATUS. The following display will appear:

- From this page you can compare the number of SAMPLE REQUESTS to the number of times the "3-Way Gate Left" sensor has been activated. The same holds true for the number of DIVERT REQUESTS and the number of times the "3-Way Gate Right" sensor has been activated.
- A light on the display should be lit up under the scenario that caused the GATE TROUBLE light to come on.
- The PLC compares the number of requests (times the solenoid comes on) to the number of counts (times the sensor is activated). If the difference between requests and counts is greater than 3 the gate trouble will be activated.
- For example if the sample solenoid comes on 5 times the left sensor should have a count of 5. If the count was at 2 the "3-WAY ALARM" and the "NOT ROTATING LEFT" lights will turn red and the red light in the Wet Lab and out at the 3-way gate will also be on. These will remain on until someone pushes the "Push to clear alarm and reset counters" button.
- You can view a more detail trend that will allow you to navigate back in time (this is limited to memory). To access the detailed trend touch the box with the text DETAILED TREND. The following display will appear:

- From this page follow the navigation instructions below the trend.
- To return to the MAIN page press the light blue box with the text RETURN.
Frequently Asked Questions
Q: Can I damage the system?
A: No. No operator inputs can damage the system.
Q: Can I use the gate test switches at any time?
A: No. The test switches will not work during an active sample when the DDS Mode switch is set to OFF or AUTO and the ‘DDS THRESHOLD’ is greater than the current sample rate.
Q: Can I enter an incorrect value?
A: Yes. Caution should be used when determining sample gate open time. An example would be entering 12 openings per hour with a 0.1 percent sample rate. Point one percent of an hour would be 3.6 seconds. When divided by 12 gate openings per hour the open time per opening would be .3 second. This is not enough time to fully open the gate. The same consideration should be used when using a 99.9% sample rate because the time between samples would not be enough to fully close the gate.
Q: Can I enter a value out of range?
A: No, the PV600 will give you a ‘value out of range’ error.
Q: When the Sample Mode switch is set to 100% Sample, will PIT tagged fish be diverted from the sample?
A: No. They will only be diverted if the DDS Mode switch is set to ON or AUTO and the ‘DDS THRESHOLD’ is less than the current sample rate.
Q: With the Sample mode switch set to AUTO (Normal Operation) and the DDS Mode switch is set to ON or AUTO and the ‘DDS THRESHOLD’ is less than the current sample rate, will PIT tagged fish be diverted from the sample.
A: Yes, When DDS Mode is active, PIT tagged fish will be diverted from the sample.
Q: Can the sample be shut off?
A: Yes, when the Sample mode switch is set to OFF (Bypass) the sample will be shut off. This will also shut down PIT tag diversion.
Q: How can I synchronize a new sample rate with the top of the hour?
A: When a new sample rate or new number of openings per hour is entered the new cycle starts when the PLC time equals the time the user entered. It should be noted that the value you are changing to synchronize with the top of the hour must be a new value. If you don’t want to change your sample percent or opening per hour but wish to synchronize at the top of the hour you must enter a different sample percent or openings per hour just prior to the top of the hour. This will cause the PLC to see a change in sample rate and re-calculate the sample times. At the top of the hour re-enter the sample percent or openings per hour you wish to run at.
Q: What will happen if a power outage occurs? Will I lose my settings?
A: No. All sample settings are stored in non-volatile memory.
References
Contact PSMFC at (509) 735-2773
| Name | Extension |
|---|---|
| Don Warf | 1 |
| Scott Livingston | 2 |
| Darren Chase | 3 |
| Alan Brower | 4 |
| Troy Humphrey | 5 |
