Results 1 to 4 of 4
Thread: SIOC Delay 'Command'
-
07-07-2010, 02:21 PM #1
- Join Date
- Dec 2009
- Location
- World
- Posts
- 8
SIOC Delay 'Command'
Hi all,
Have been battling through learning SIOC today and have learnt almost everything from Nico's site so far which has been brilliant!
On the site there is the example of the delay being used to light a led:
Code:Var 1 { &Led = DELAY 1 400 } Var 2 name Led Link IOCARD_OUT Output 92
Code:&FO_JoyStick64 = CHANGEBIT 0 1 ''AFTER A DELAY OF 1 SECOND THEN..." &FO_JoyStick64 = CHANGEBIT 0 0
Code:CHANGEBIT 0 DELAY 0 100 DELAY CHANGEBIT 0 0 100
Marcus
-
Post Thanks / Like - 0 Thanks, 1 Likes, 0 Dislikes
kiek liked this post
-
07-07-2010, 02:38 PM #2
- Join Date
- Dec 2009
- Location
- World
- Posts
- 8
Re: SIOC Delay 'Command'
SOLVED!
In case anyone else is reading and looking for the answer, the solution in my case was to reset the offset variable itself.
Code:Var 1 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4 Var 2 name pb_test Link IOCARD_SW Input 3 Type I If pb_test = 1 { &FO_JoyStick64 = CHANGEBIT 0 1 v1 = DELAY 0 10 }
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
dc8flightdeck thanked for this post
-
02-26-2013, 01:09 PM #3
- Join Date
- Jul 2006
- Location
- Kansas
- Posts
- 149
Re: SIOC Delay 'Command'
This delay timer is exactly what I needed and works like a charm! Thanks!!
JustinHome of the world's first South American DC-8 jetliner.
Home of the Blue Angel F-4 Phantom simulator.
-
02-26-2013, 05:42 PM #4
- Join Date
- Jul 2006
- Location
- Kansas
- Posts
- 149
Re: SIOC Delay 'Command'
In case they help someone, here are some timer scripts that I use.
**************************************ADI flag delay when battery turned on********************************
Var 0154, name FOflags, Link FSUIPC_INOUT, Offset $281C, Length 4 // Battery STATUS
{
IF &FOflags = 0 // Battery OFF
{
&2Flags = 0
&2Flags = DELAY 1 1200 // 12 second delay befor flag pulls
}
}
Var 0155, name 2Flags, Link IOCARD_OUT, Output 38 // F/O Gyro and Steer flags On/OFF
***********************************TIMER, INTANTLY RUN OUTPUT FOR X SECONDS****************************
Var 0097, name ground, Link FSUIPC_INOUT, Offset $0366, Length 2 // aircraft is on ground
{
IF &ground = 1 // Generator one ON
{
&Bump = CHANGEBIT 0 1
v0098 = DELAY 0 140 // run for 1.4 seconds
}
ELSE
{
&Bump = 0
}
}
Var 0098, name Bump, Link IOCARD_OUT, Output 8 // Bump relay
// ----------------------------------AP Master ON/OFF timed AP light flash------------------------------
Var 0142, name Engaged, Link FSUIPC_INOUT, Offset $07BC, Length 4 // Autopilot Master switch
{
IF &Engaged = 0
{
IF &M_AP_LGT = 0 // only start if led does not blink
{
&BlinkAP = 100 // begin value of timer
&BlinkAP = TIMER 0 -1 40
}
}
}
Var 2 name BlinkAP
{
L0 = MOD &BlinkAP 2
IF L0 = 1
{
&M_AP_LGT = 1
}
ELSE
{
&M_AP_LGT = 0
}
}
Var 0143, name M_AP_LGT, Link IOCARD_OUT, Output 32 // AP Master disengaged light flashHome of the world's first South American DC-8 jetliner.
Home of the Blue Angel F-4 Phantom simulator.
Similar Threads
-
Copy and Paste Command
By Tim in forum General Builder Questions All Aircraft TypesReplies: 5Last Post: 03-10-2008, 04:10 PM -
PMDG 737 or 737 Pilot In Command
By Geremy Britton in forum General Builder Questions All Aircraft TypesReplies: 6Last Post: 11-12-2007, 10:25 AM -
Need help with an apparently 'mouse only' command
By Michael Carter in forum I/O Interfacing Hardware and SoftwareReplies: 9Last Post: 08-18-2007, 11:08 PM -
Keyboard to send Command
By mimmonick in forum Computer Hardware SetupReplies: 2Last Post: 06-14-2007, 11:16 AM