ch = interrupt channel number (pls refer
to PLC installation guide)
fn_num= Custom Function number to execute
when interrupt pin changes according to the defined edge. This is the Interrupt Service
Routine ISR.
edge = Positive number means rising
edge-triggered. 0 or negative number means falling-edge triggered.