{
    "version": "1",
    "truth_tables": [
        {
            "name": "Mirror BL21 Position",
            "inputs": [
                "BL22_OUT_STATE",
                "BL22_IN_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "Moving",   0,   0,   0, null],
                [1, "Out",    120, 120, 120, null],
                [2, "In",     120, 120, 120, null],
                [3, "Broken",   0,   0,   0, null]
            ]
        },
        {
            "name": "Mirror BL11 Position",
            "inputs": [
                "MIR_BL11_OUT_STATE",
                "MIR_BL11_IN_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Moving",   0,   0,   0, null],
                [1, "Out",    120, 120, 120, null],
                [2, "In",     120, 120, 120, null],
                [3, "Broken",   0,   0,   0, null]
            ]
        },
        {
            "name": "Mirror AM01 Position",
            "inputs": [
                "MR_BL191_STATE"
            ],
            "states": [
                [0, "Not Out",   0,   0,   0, null],
                [1, "Out",     120, 120, 120, null]
            ]
        },
        {
            "name": "Gun Waveguide Vacuum Summary",
            "inputs": [
                "WGVACGUN_STATE"
            ],
            "states": [
                [0, "Not Out",   0,   0,   0, null],
                [1, "Out",     120, 120, 120, null]
            ]
        },
        {
            "name": "IMPS IOC Heartbeat",
            "inputs": [
                "MN_HEART_STATE"
            ],
            "states": [
                [0, "Fault",     0,   0,   0, null],
                [1, "OK",     120, 120, 120, null]
            ]
        },
        {
            "name": "MPS Mechanical Shutter Position",
            "inputs": [
                "SHFLT_STATE"
            ],
            "states": [
                [0, "Readback Does Not Match",    0,   0,   0, null],
                [1, "OK",     120, 120, 120, null]
            ]
        },
        {
            "name": "Gun RF Peak Power 20-6",
            "inputs": [
                "FLT_20_6_TRP_STATE"
            ],
            "states": [
                [0, "Fault",    0,   0,   0, null],
                [1, "OK",     120, 120, 120, null]
            ]
        },
        {
            "name": "Toroid Chassis IM11",
            "inputs": [
                "CHASIM11_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Toroid Chassis IM12",
            "inputs": [
                "CHASIM12_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Toroid Chassis IMBC2",
            "inputs": [
                "CHASIMB2_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Wakefield Shield Gun Spectrometer",
            "inputs": [
                "WL_BL231_IN_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "BXG Is Off"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",     10,  10,  10, null]
            ]
        },
        {
            "name": "Wakefield Shield Straight Ahead",
            "inputs": [
                "WL_BL231_OUT_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Flowswitch TD11",
            "inputs": [
                "FS_BL305_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Toroid Comparator IM02/IM03 < 90% Fault",
            "inputs": [
                "TC203L1_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IM02/IM03 < 50% Fault",
            "inputs": [
                "TC203L2_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IM02/IMS1 < 50% Fault",
            "inputs": [
                "TC2S1L2_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "BX01/BX02 Is On"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IM02/IMS1 < 90% Fault",
            "inputs": [
                "TC2S1L1_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "BX01/BX02 Is On"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "BXS Status",
            "inputs": [
                "BEND_IN20_931_OK_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "BX01/BX02 Is On"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Toroid Comparator IMBC1IN/IMBC1OUT < 90% Fault",
            "inputs": [
                "TCBC1L1_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IMBC1IN/IMBC1OUT < 50% Fault",
            "inputs": [
                "TCBC1L2_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Flowswitch CE11",
            "inputs": [
                "FS_BL305_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Peak Current Monitor IM01",
            "inputs": [
                "TR_BL215_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IMBC2IN/IMBC2OUT < 90%",
            "inputs": [
                "TCBC2L1_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "Toroid Comparator IMBC2IN/IMBC2OUT < 50%",
            "inputs": [
                "TCBC2L2_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "OK",    120, 120, 120, null],
                [1, "Fault",   0,   0,   0, null]
            ]
        },
        {
            "name": "PIC Gas Pressure LI24",
            "inputs": [
                "PIC_GAS_PRESS_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        },
        {
            "name": "Flowswitch CE21",
            "inputs": [
                "COL_805_FLOSW_STATE"
            ],
            "ignore_when": [
                "YG BL211 Is In",
                "TD11 Is In"
            ],
            "states": [
                [0, "Fault",   0,   0,   0, null],
                [1, "OK",    120, 120, 120, null]
            ]
        }
    ]
}
