AELEXIAN EMPIRE
Would you like to react to this message? Create an account in a few clicks or log in to continue.

example of Basic turbo C program in PLC Programming

Go down

example of Basic turbo C program in PLC Programming Empty example of Basic turbo C program in PLC Programming

Post by ultrasonic™ Fri Aug 27, 2010 11:15 pm

basic program lng ni hah..
kamu na bahala mag-edit or magdungag kng gusto ninyu usbon..kng pila ka output once na RUN na ang program..

example given: ...

________________________________________________________________________________

#include<stdio.h>
#include<conio.h>
#include<dos.h>



main( )


{

clrscr( );

printf("conveyor is turning on"); --------------------------------------------------->>>> optional na ni xa

outportb(0x378,0x02);
delay(10000);
getch( );

}
_________________________________________________________________________________


now kanang 02 mao na xa ang indication kng unsa ang pin hole sa LPT port kng DB9/serial port xa or DB25/Parallel port/Printer port ang gamitan ninyu


01 = pin2 of DB25 or DB9
02 = pin3 of DB25 or DB9
04 = pin4 of DB25 or DB9
08 = pin5 of DB25 or DB9
10 = pin6 of DB25 or DB9
20 = pin7 of DB25 or DB9
40 = pin8 of DB25 or DB9
80 = pin9 of DB25 or DB9


hope na getz nyu ang Basic Programming (^_^),V,,
ultrasonic™
ultrasonic™
24V BATTERY
24V BATTERY

Posts : 4475
Join date : 2010-08-19
Age : 38
Location : Davao City

Back to top Go down

example of Basic turbo C program in PLC Programming Empty Re: example of Basic turbo C program in PLC Programming

Post by ultrasonic™ Fri Aug 27, 2010 11:21 pm

Reply by mayalin143 on February 13, 2010 at 9:33am
nA miSS kO tULoy aNg bAsiC pRogRamMiNg

Reply by jesrel sajulga on February 13, 2010 at 12:53pm
w0w nice one dex........./ salamat ^_^

Reply by nathalyn gyn cabusas on February 20, 2010 at 5:25pm
kuya mangayo k ig source code?

Reply by Piezo on February 24, 2010 at 7:17pm
EXAMPLE OF A BASIC SOURCE CODE ARE POSTED ABOVE

Reply by P-I-C on March 4, 2010 at 1:57pm
hindi naman hinihingi ang source code, kosa mo na lang yan nakukuha pagkatapos mong mag-program o mapa RUN ang program
ultrasonic™
ultrasonic™
24V BATTERY
24V BATTERY

Posts : 4475
Join date : 2010-08-19
Age : 38
Location : Davao City

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum