Appendix
128/142
netPLC C100 | Startup Guide
DOC090701UM02EN | Revision 2 | English | 2009-10 | Released | Public
© Hilscher, 2009
18.2 Example Projects
On the DVD you find four example projects. Find below a short description
of each in the following chapters.
To open, to load and to start of the respective PLC example program the
following basic steps are needed:
¾
Use the CoDeSys menu item
File > Open Project
to open the project.
¾
Set the active path to the slot PLC in the communication settings dialog
¾
Use the CoDeSys menu item
Online > Login to [Device: PLC Logic]
,
die load the program to the slot PLC (or the key combination Alt + F8).
¾
Use the CoDeSys menu item
Online > Create boot application for
App [Device: PLC Logic]
.
¾
Start the PLC program using
Online > Start App [Device: PLC logic]
(or using the key F5).
18.2.1
netPLC PROFIBUS Simple IO
Project name
PROFIBUS Simple IO.project
Folder
Examples\netPLC PROFIBUS Simple IO
Short description
The project consist of a slot PLC card as PROFIBUS-DP Master and a PROFIBUS-DP
slave device CBAB32-DPS. The PROFIBUS-DP slave device has two bytes input process
data (occupying %IB0 and %IB1) and two output process data (occupying %QB0 and
%QB1)
PLC program
The PLC program increments the %QB0 each cycle to act as a counter. And the PLC
program copies the input process data byte %IB1 to output process data byte %QB1.
Table 29: Example – netPLC PROFIBUS Simple IO
18.2.2
netPLC System Functions
Project name
netPLC System Functions.project
Folder
Examples\netPLC System Functions
Short description
The project consists of a slot PLC NPLC-C100-DP to demonstrate the use of the system
functions.
PLC program
The PLC program shows how to use the system functions
StatusOfBattery,
StatusOfExt24V und
StatusOfPCIPower
Table 30: Example – netPLC System Function
The system functions are explained in the chapter
Functions –
CmpSysFunctions_netPLC
on page 97 and following.