4 start of program "car park, Start of program “car park, Drive plc developer studio – Lenze DDS v2.1 Benutzerhandbuch

Seite 38: 4 start of program “car park

Advertising
background image

Drive PLC Developer Studio

L

36

DDS DE/EN 2.1

Tip!

If the error message “Communication error: You will be logged out” appears while you try to log in the

automation system, it is not possible to build up the connection with the automation system.

Check the PC connection

↔ Automation system through the system bus configuration tool.

Check whether the automation system is ready for operation (e. g. 9300 Servo PLC)

Check the communication parameters set for the project with

Online

Communication parameter.

4.4.4

Start of program “Car park”

Select

Online

Start, to start the park car program in the automation system or PC (if the

simulation mode is activated).

Tip!

If the mouse pointer is on a variable in online mode, the type and if available the comment of the

variable will be indicated.

Change of variable values in online mode

Change the variable values (”Write values”) in online and see the effects of the change in DDS
(”Monitoring”) to check the program functionality.
The following tables give more information on the variables used:

Input variables

State

Meaning

bPhotosensor1

FALSE

TRUE

Car drives in car park. ParkingLotsCounter is

increased by one to max. 10.

bPhotosensor2

FALSE

TRUE

Car leaves car park. ParkingLotsCounter is decreased

by one to min. 0.

bResetLots

TRUE

ParkingLotsCounter

is reset to 0.

Output variables

Status/value

Meaning

ParkingLotsCounter

0...9

Free space in car park available.

Li ht

B i i

TrafficLightGreen

TRUE

ee space ca pa a a ab e

Lights on green. Barrier is open.

TrafficLightRed

FALSE

ParkingLotsCounter

10

No more spaces available in car park.

Li ht

d B i i l

d

TrafficLightGreen

FALSE

o o e spaces a a ab e ca pa

Lights on red. Barrier is closed.

TrafficLightRed

TRUE

Show/Hide Bookmarks

Advertising