I got mine and i was reading and playing with it and with the DC-16 that is an on-off state only and i under stand that but can you still use the prop 1 outputs and the DC-16 at the same time and if so here is what I'm whating to do :
<<<< controlers>>>>
( i have the prop 1 and a DC-16 )
1. have prop 1 control my IR lights and camera mounts that run on nine volts.
2. then have my DC-16 run my cameras and flood lights (that are on my relays) and i know how to write the code for prop 1 but don't really understand how to control the DC-16.
Yes Jon has give me links and I'm still not understanding it. I have what i wont do do in my mine put its not in the stamp form. if some one could hope me out by showing me the way to write a simple comman for the DC-16 in the short bus way i think i would get it .....
Please... just post a concise explanation of the program you want and I'll write it for you.
sorry Jon,
This is what i need. 1.)After the pir picks up movement i need three output on for (20 min) on the prop 1 controller.
2.) then on the DC-16 i will need four outputs on for (20 Min's).
That is all i need thanks. Jest like you said be for after i see how you write it i will get it. sorry for be confusing..
Please elaborate. I don't fully understand how you want your program to operate. The trickiest part of programming is knowing what you want and being able to articulate it.
when the pir detacks movement i need four outputs to turn on for 20mins each. Three of them are cameras and the fourth is for my IR leds. Then at the same time on the dc-16 i need two outputs on for 20 mins witch is for two more cameras. Then two more outputs on for 20 mins touse will be for my flood lights and then off and then wait for movement. then do it all over i hope this is good for what you need.
I'm still confused so I hope this works....
' =========================================================================
'
' File......
' Purpose...
' Author.... Jon Williams, EFX-TEK
' Copyright (c) 2008 EFX-TEK
' Some Rights Reserved
' -- see http://creativecommons.org/licenses/by/3.0/
' E-mail.... jwilliams@efx-tek.com
' Started...
' Updated... 04 NOV 2008
'
' {$STAMP BS1}
' {$PBASIC 1.0}
'
' =========================================================================
' -----[ Program Description ]---------------------------------------------
' -----[ Revision History ]------------------------------------------------
' -----[ I/O Definitions ]-------------------------------------------------
SYMBOL Sio = 7 ' SETUP = out; no ULN
SYMBOL Trigger = PIN6 ' SETUP = DN
SYMBOL Flood2 = PIN5
SYMBOL Flood1 = PIN4
SYMBOL IrLight = PIN3
SYMBOL Cam3 = PIN2
SYMBOL Cam2 = PIN1
SYMBOL Cam1 = PIN0
' -----[ Constants ]-------------------------------------------------------
SYMBOL IsOn = 1 ' for active-high in/out
SYMBOL IsOff = 0
SYMBOL Yes = 1
SYMBOL No = 0
SYMBOL Baud = OT2400 ' B/R jumper removed
' -----[ Variables ]-------------------------------------------------------
SYMBOL timer = B2
SYMBOL minutes = B3
' -----[ Initialization ]--------------------------------------------------
Reset:
PINS = %00000000 ' clear all
DIRS = %00111111 ' set outputs
SEROUT Sio, Baud, ("!!!!!DC16", %00, "X") ' clear if any outputs on
' -----[ Program Code ]----------------------------------------------------
Main:
timer = 0 ' reset timer
Check_Trigger:
PAUSE 5 ' loop pad
timer = timer + 5 * Trigger ' update timer
IF timer < 100 THEN Check_Trigger ' wait for 0.1 sec input
PINS = %00001111
SEROUT Sio, Baud, ("!DC16", %00, "L", %00001111)
minutes = 20
GOSUB Delay_Mins
PINS = %00110000
SEROUT Sio, Baud, ("!DC16", %00, "X")
minutes = 20
GOSUB Delay_Mins
GOTO Reset
' -----[ Subroutines ]-----------------------------------------------------
Delay_Mins:
IF minutes = 0 THEN DM_Exit
PAUSE 60000
minutes = minutes - 1
GOTO Delay_Mins
DM_Exit:
RETURN
' -------------------------------------------------------------------------
' -----[ User Data ]-------------------------------------------------------
well your confused but. You got it and running the program i understand the way to write using my DC-16 and. now that i have seen the code and the way its written. It looks to me that the eight zero's are for the first eight out puts and. So to use the other eight do i jest add eight more zero's for off and 1's for on am i wright by thinking this or wrong. I'm not trying to bust you **** i think i might be I'm really sorry
Please, before you ask another series of questions that I do no have the ability to decode and understand, I'd like you to print out our DC-16 documentation and actually study it. Our docs explain the DC-16 syntax and even gives simple examples of each command. With a working program per your sort-of specs, with demos on our web site and here int the forums, there is really no reason for me to continue pulling my hair out and spoon feeding everything to you. I like my hair. ;D At some point you have to make an effort on your own. Time to start, because not reading our docs or making any effort on your own is in fact busting our backs.