DCIPLC (Version 4)
DCIPLC 4 Compiled: 29-12-2002.
Download DCIPLC4.ZIP (1500kb).
Back
What's new overview:
DCIVISU: HMI (visualise a process) software included.
DCIVISU: Using a checkbox to set inputs.
DCIPLC4: COM (Component Object Model) server included.
DCIPLC4: Old files prior to version 4 no longer useable.
DCIPLC4: The maximum length of the ladder logic diagram is 500 lines now.
DCIPLC4: Some old bugs fixed.
-HMI software included.
With DCIVISU you can visualise a process. A bit-mapped image created in
say Paint is used as a backdrop.
Labels can then be positioned anywhere on the image. The lable can link to
a digital input, digital output, a timer or counter value. The label wording
can change as can it's colour depending upon the state of the object it's
linked to. For example, a label linked to a digital output can read OPEN in
green when a digital output is high, and read SHUT in red when the digital
output is low.
An example:
Start the DCIPLC program and open \examples\conveyor.plc.
Go to simulation mode and make input 31 high.
Use input 1 to select forward/right.
Start DCIVISU and open \projects\ conveyor.vpl.
Go to run mode.
See what happens.
To top.
-Using a checkbox to set inputs.
With DCIVISU you can set inputs. Place a checkbox on the image, link the checkbox
to an input and go to run mode.
To top.
- COM (Component Object Model) server.
Download example: com.zip.
The DCIPLC program contains a simple COM (Component Object Model) server interface.
This allows an external program, such as Excel or Visual Basic, to read the status from
the inputs and outputs.
An example:
First start the DCIPLC .exe program.
Start Excel, open the file 'Com.xls' and start the 'Visual Basic Editor' (Alt + F11).
From the 'View' menu select the 'Object Browser' (F2).
Place the mouse pointer over the 'Object Browser' pane and click on it with the right-hand mouse button.
Click on 'References' in the pop-up menu.
Choose 'Browse' from the 'References' dialogue and choose as file type 'Executable Files ("*.exe,*.dll")'.
Navigate to the folder where Busmstr.exe is and choose Busmstr.exe and click on 'Open'.
In the 'Classes' window there should now be an object with the name 'TDCIPLC_COM'.
Click on this and the members of the 'TDCIPLC_COM' object appear in the right-hand window.
These should be 'GetInputs', 'GetOutputs', GetLong_0, GetLong_1, GetLong_2, GetTimerUp, GetTimerDown,
GetCounter and RunPlc.
Choose the correct serial port, open it, open an AllInOut.plc file and go to run or simulate mode.
Set input 1 and input 2 high.
Return to Excel and click on the 'Refresh' button.
The number in box C4 represents the state of the inputs and the number in box C6 represents the state of the outputs.
Now go back to the 'Visual Basic Editor' window and select 'Design Mode' from the 'Run' menu.
Return to Excel and click with the right-hand mouse button on the 'Refresh' button and choose the option 'View Code'.
Now the code can be edited. This should be studied with a view of possibly automating the Excel worksheet further.
Observations:
1. If the Busmstr.exe program has been started via Excel, it will be closed every time 'Design Mode' is entered.
2. Never close the server program (dciplc.exe) while the client program (Excel in this case) is still running!
3. Don´t use 'GetInputs', 'GetOutputs', GetLong_0, GetLong_1 and GetLong_2, GetTimerUp, GetTimerDown,
GetCounter and RunPlc to start the DCIPLC!
To top.
-Old files prior to version 4 no longer useable.
As of version 4 there's a security-feature which prohibits users to load files which haven't
been created using DCIPLC. Sadly, this means that files, which are created with a version of
DCIPLC prior to version 4, won't be useable for DCIPLC 4 and beyond.
To top.
-Maximum 500 lines.
The maximum length of the ladder logic diagram is limited from 100 to 500 lines.
To top.
-Some old bugs fixed.
-Bug with LCD/TFT display's fixed (run and simulation mode).
To top.
Back