====== SET Box Function ====== **Set Coil (Latch)** Category: [[en-us_products:mpino_studio2:box_functions:bit_latch|Bit and Latch Box Functions]] ===== Behavior ===== When the left condition is ON, stores ON in an M bit or a P bit configured as an output and holds it after the condition turns OFF. ===== Syntax and Arguments ===== **Syntax:** ''SET M0'' * 1st = target: M bit or P bit configured as an output ===== Behavior Example ===== ^ Run condition ^ Before ^ Command entered ^ Expected result ^ | Left condition ON | M0=OFF | ''SET M0'' | M0=ON | {{ :en-us_products:mpino_studio2:latch-examples.svg?1000 |Inputs and results for Bit and Latch Box Functions }} ===== Cautions ===== * Use an M bit or a P bit configured as an output. The stored state remains after the condition turns OFF. ===== Box Functions in the Same Category ===== * [[en-us_products:mpino_studio2:box_functions:bit_latch:rst|RST View details]] — Reset Coil (Unlatch)