LDmicro0.1
MICRO=Microchip PIC16F877 40-PDIP
CYCLE=30000
CRYSTAL=4000000
BAUD=2400
COMPILED=F:\CHIESA\CHIESA.hex
IO LIST
XMONETA at 2
YLP1 at 15
YLP10 at 24
YLP11 at 25
YLP12 at 26
YLP13 at 27
YLP14 at 28
YLP15 at 29
YLP16 at 30
YLP17 at 33
YLP18 at 34
YLP19 at 35
YLP2 at 16
YLP20 at 36
YLP21 at 37
YLP22 at 38
YLP23 at 39
YLP24 at 40
YLP25 at 3
YLP26 at 4
YLP27 at 5
YLP28 at 6
YLP29 at 7
YLP3 at 17
YLP30 at 8
YLP4 at 18
YLP5 at 19
YLP6 at 20
YLP7 at 21
YLP8 at 22
YLP9 at 23
END
PROGRAM
RUNG
COMMENT Lamp test on reset; all lamps 3 sec. on
END
RUNG
OSR
TOF TRESET1 3000000
PARALLEL
COIL RM1 0 0 0
COIL RM2 0 0 0
COIL RM3 0 0 0
COIL RM4 0 0 0
COIL RM5 0 0 0
COIL RM6 0 0 0
COIL RM7 0 0 0
COIL RM8 0 0 0
COIL RM9 0 0 0
COIL RM10 0 0 0
COIL RM11 0 0 0
COIL RM12 0 0 0
COIL RM13 0 0 0
COIL RM14 0 0 0
COIL RM15 0 0 0
END
END
RUNG
OSR
TOF TRESET2 3000000
PARALLEL
COIL RM16 0 0 0
COIL RM17 0 0 0
COIL RM18 0 0 0
COIL RM19 0 0 0
COIL RM20 0 0 0
COIL RM21 0 0 0
COIL RM22 0 0 0
COIL RM23 0 0 0
COIL RM24 0 0 0
COIL RM25 0 0 0
COIL RM26 0 0 0
COIL RM27 0 0 0
COIL RM28 0 0 0
COIL RM29 0 0 0
COIL RM30 0 0 0
END
END
RUNG
COMMENT Coin insert\r\n
END
RUNG
CONTACTS XMONETA 0
OSR
CTC CCONTA 30
END
RUNG
COMMENT Lamps on for about 26 min. (Sould be 30 min but I don't know how setting toff to 1.800 sec.)\r\nTo make tests easly now is only 10 sec.
END
RUNG
EQU CCONTA 1
OSR
TOF T1 10000000
COIL RML1 0 0 0
END
RUNG
EQU CCONTA 2
OSR
TOF T2 10000000
COIL RML2 0 0 0
END
RUNG
EQU CCONTA 3
OSR
TOF T3 10000000
COIL RML3 0 0 0
END
RUNG
EQU CCONTA 4
OSR
TOF T4 10000000
COIL RML4 0 0 0
END
RUNG
EQU CCONTA 5
OSR
TOF T5 10000000
COIL RML5 0 0 0
END
RUNG
EQU CCONTA 6
OSR
TOF T6 10000000
COIL RML6 0 0 0
END
RUNG
EQU CCONTA 7
OSR
TOF T7 10000000
COIL RML7 0 0 0
END
RUNG
EQU CCONTA 8
OSR
TOF T8 10000000
COIL RML8 0 0 0
END
RUNG
EQU CCONTA 9
OSR
TOF T9 10000000
COIL RML9 0 0 0
END
RUNG
EQU CCONTA 10
OSR
TOF T10 10000000
COIL RML10 0 0 0
END
RUNG
EQU CCONTA 11
OSR
TOF T11 10000000
COIL RML11 0 0 0
END
RUNG
EQU CCONTA 12
OSR
TOF T12 10000000
COIL RML12 0 0 0
END
RUNG
EQU CCONTA 13
OSR
TOF T13 10000000
COIL RML13 0 0 0
END
RUNG
EQU CCONTA 14
OSR
TOF T14 10000000
COIL RML14 0 0 0
END
RUNG
EQU CCONTA 15
OSR
TOF T15 10000000
COIL RML15 0 0 0
END
RUNG
EQU CCONTA 16
OSR
TOF T16 10000000
COIL RML16 0 0 0
END
RUNG
EQU CCONTA 17
OSR
TOF T17 10000000
COIL RML17 0 0 0
END
RUNG
EQU CCONTA 18
OSR
TOF T18 10000000
COIL RML18 0 0 0
END
RUNG
EQU CCONTA 19
OSR
TOF T19 10000000
COIL RML19 0 0 0
END
RUNG
EQU CCONTA 20
OSR
TOF T20 10000000
COIL RML20 0 0 0
END
RUNG
EQU CCONTA 21
OSR
TOF T21 10000000
COIL RML21 0 0 0
END
RUNG
EQU CCONTA 22
OSR
TOF T22 10000000
COIL RML22 0 0 0
END
RUNG
EQU CCONTA 23
OSR
TOF T23 10000000
COIL RML23 0 0 0
END
RUNG
EQU CCONTA 24
OSR
TOF T24 10000000
COIL RML24 0 0 0
END
RUNG
EQU CCONTA 25
OSR
TOF T25 10000000
COIL RML25 0 0 0
END
RUNG
EQU CCONTA 26
OSR
TOF T26 10000000
COIL RML26 0 0 0
END
RUNG
EQU CCONTA 27
OSR
TOF T27 10000000
COIL RML27 0 0 0
END
RUNG
EQU CCONTA 28
OSR
TOF T28 10000000
COIL RML28 0 0 0
END
RUNG
EQU CCONTA 29
OSR
TOF T29 10000000
COIL RML29 0 0 0
END
RUNG
EQU CCONTA 30
OSR
TOF T30 10000000
COIL RML30 0 0 0
END
RUNG
EQU CCONTA 30
SUB CCONTA CCONTA 30
END
RUNG
COMMENT Set pin MCU
END
RUNG
PARALLEL
CONTACTS RM1 0
CONTACTS RML1 0
END
COIL YLP1 0 0 0
END
RUNG
PARALLEL
CONTACTS RM2 0
CONTACTS RML2 0
END
COIL YLP2 0 0 0
END
RUNG
PARALLEL
CONTACTS RM3 0
CONTACTS RML3 0
END
COIL YLP3 0 0 0
END
RUNG
PARALLEL
CONTACTS RM4 0
CONTACTS RML4 0
END
COIL YLP4 0 0 0
END
RUNG
PARALLEL
CONTACTS RM5 0
CONTACTS RML5 0
END
COIL YLP5 0 0 0
END
RUNG
PARALLEL
CONTACTS RM6 0
CONTACTS RML6 0
END
COIL YLP6 0 0 0
END
RUNG
PARALLEL
CONTACTS RM7 0
CONTACTS RML7 0
END
COIL YLP7 0 0 0
END
RUNG
PARALLEL
CONTACTS RM8 0
CONTACTS RML8 0
END
COIL YLP8 0 0 0
END
RUNG
PARALLEL
CONTACTS RM9 0
CONTACTS RML9 0
END
COIL YLP9 0 0 0
END
RUNG
PARALLEL
CONTACTS RM10 0
CONTACTS RML10 0
END
COIL YLP10 0 0 0
END
RUNG
PARALLEL
CONTACTS RM11 0
CONTACTS RML11 0
END
COIL YLP11 0 0 0
END
RUNG
PARALLEL
CONTACTS RM12 0
CONTACTS RML12 0
END
COIL YLP12 0 0 0
END
RUNG
PARALLEL
CONTACTS RM13 0
CONTACTS RML13 0
END
COIL YLP13 0 0 0
END
RUNG
PARALLEL
CONTACTS RM14 0
CONTACTS RML14 0
END
COIL YLP14 0 0 0
END
RUNG
PARALLEL
CONTACTS RM15 0
CONTACTS RML15 0
END
COIL YLP15 0 0 0
END
RUNG
PARALLEL
CONTACTS RM16 0
CONTACTS RML16 0
END
COIL YLP16 0 0 0
END
RUNG
PARALLEL
CONTACTS RM17 0
CONTACTS RML17 0
END
COIL YLP17 0 0 0
END
RUNG
PARALLEL
CONTACTS RM18 0
CONTACTS RML18 0
END
COIL YLP18 0 0 0
END
RUNG
PARALLEL
CONTACTS RM19 0
CONTACTS RML19 0
END
COIL YLP19 0 0 0
END
RUNG
PARALLEL
CONTACTS RM20 0
CONTACTS RML20 0
END
COIL YLP20 0 0 0
END
RUNG
PARALLEL
CONTACTS RM21 0
CONTACTS RML21 0
END
COIL YLP21 0 0 0
END
RUNG
PARALLEL
CONTACTS RM22 0
CONTACTS RML22 0
END
COIL YLP22 0 0 0
END
RUNG
PARALLEL
CONTACTS RM23 0
CONTACTS RML23 0
END
COIL YLP23 0 0 0
END
RUNG
PARALLEL
CONTACTS RM24 0
CONTACTS RML24 0
END
COIL YLP24 0 0 0
END
RUNG
PARALLEL
CONTACTS RM25 0
CONTACTS RML25 0
END
COIL YLP25 0 0 0
END
RUNG
PARALLEL
CONTACTS RM26 0
CONTACTS RML26 0
END
COIL YLP26 0 0 0
END
RUNG
PARALLEL
CONTACTS RM27 0
CONTACTS RML27 0
END
COIL YLP27 0 0 0
END
RUNG
PARALLEL
CONTACTS RM28 0
CONTACTS RML28 0
END
COIL YLP28 0 0 0
END
RUNG
PARALLEL
CONTACTS RM29 0
CONTACTS RML29 0
END
COIL YLP29 0 0 0
END
RUNG
PARALLEL
CONTACTS RM30 0
CONTACTS RML30 0
END
COIL YLP30 0 0 0
END