Difference between revisions of "Sw send"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>sw_send</span> R1</span> * R1 = Switch number * R2 = Floor # * R3 = Lock Sta...")
 
(No difference)

Latest revision as of 01:05, 18 April 2022

Syntax

Syntax: sw_send R1

  • R1 = Switch number
  • R2 = Floor #
  • R3 = Lock State

Use

Changes the switch state of the given switch, if R3 = 1, then unlock.

Example


100:     leti 00000005 R1 //Switch #5
         leti 00000001 R2 //Floor #1
         leti 00000001 R3 //Unlock
         sw_send R1 // Perform the opcode with the above parameters
         ret