cvtem
Computer
- Jan 23, 2005
- 6
Hi,
I have a Hitachi EH-D14DR PLC here that I am supposed to be programming.
I have experience in programming PIC's and programming in linux, but absolutley none of that seems to be of any value with this weird Ladderlogic.
The program they supplied was Actwin Ladder Logic Software, which has a free driver that can program this PLC.
Below is a quickly thrown up example of (exactly) what I'm trying to do with this in picBasic, as I don;t know how else to explain, or even where to start with it in ladderlogic.
any help would be valuable!!!
This is a rush job, and I was dedicated programmer as the electricians we use, there PLC programmer isn;t able to get to it in time.
'yes, using 3 of the counters
'auger inputs are as mentioned, 12 pulses per rev, 350rpm
'emergency stop is one of the built in Normaly Open relays
'code is in BASIC so should be very simple to follow.
start:
emergencystop = 1 'emergencystop is OUTPUT RELAY, activate relay
'35pp 1/2 sec
mainloop:
count auger1, 500, result 'auger1 is INPUT PIN, count for 500ms, store result in 'result' variable
if result < 33 then emergstop
count auger2, 500, result
if result < 33 then emergstop
count auger3, 500, result
if result < 33 then emergstop
goto mainloop
emergstop:
emergencystop = 0
pause 30000 ' delay 30 seconds
goto start
I have a Hitachi EH-D14DR PLC here that I am supposed to be programming.
I have experience in programming PIC's and programming in linux, but absolutley none of that seems to be of any value with this weird Ladderlogic.
The program they supplied was Actwin Ladder Logic Software, which has a free driver that can program this PLC.
Below is a quickly thrown up example of (exactly) what I'm trying to do with this in picBasic, as I don;t know how else to explain, or even where to start with it in ladderlogic.
any help would be valuable!!!
This is a rush job, and I was dedicated programmer as the electricians we use, there PLC programmer isn;t able to get to it in time.
'yes, using 3 of the counters
'auger inputs are as mentioned, 12 pulses per rev, 350rpm
'emergency stop is one of the built in Normaly Open relays
'code is in BASIC so should be very simple to follow.
start:
emergencystop = 1 'emergencystop is OUTPUT RELAY, activate relay
'35pp 1/2 sec
mainloop:
count auger1, 500, result 'auger1 is INPUT PIN, count for 500ms, store result in 'result' variable
if result < 33 then emergstop
count auger2, 500, result
if result < 33 then emergstop
count auger3, 500, result
if result < 33 then emergstop
goto mainloop
emergstop:
emergencystop = 0
pause 30000 ' delay 30 seconds
goto start