The panel is going to have functions that assign inputs and outputs. So function F1 for primary recall, will have all the elevator lobby smoke detectors EXCEPT for the primary floor elevator lobby detector, the machine room smoke detectors, and the hoistway smoke detectors, if any, assigned to the input of F1. Usually, they are placed in a zone and the zone becomes the input to the function. The output of the function is assigned to the address of the FRM-1 relay module. Easy peasey.