ICE1-Module With Control-Function
ICE1-Module With Control-Function
MANUAL
ICE1-8DI8DO-G60L-C1-V1D
Fieldbus Modules with
Logical-Control
R
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Note!
Inputs or outputs that are used by the control application can no longer be directly controlled by
the PLC. However, the inputs or outputs can communicate with the PLC since the
corresponding cyclic bits are read and written by the control program.
Parameter
The multiprotocol module ICE1-8DI8DO-G60L-C1-V1D has an additional PLC parameter,
which is used to control the start behavior of the logic unit.
Control start parameter
Disabled The control application is disabled
Locked The control application is disabled and cannot be started via the web
interface.
Run The control application starts in the RUN status and executes a valid
loaded program.
Control Programming
Control/LDMicro framework conditions
Max. rungs 99
Max. bits 99
Max. integers 99
Min. microcontroller cycle time 10 ms
2017-05
56
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
LDMicro
Open source ladder logic programming tool:
Download LDMicro at: https://www.pepperl-fuchs.de or http://cq.cx/ladder.pl#dl
With LDMicro, the user can create programs in a ladder-diagram style in line with EN 61131-3.
In a ladder-diagram style, all elements of the program are assigned to horizontal lines (rungs).
The paths are always executed from left to right without an established rung order. This concept
has its origin in hard-wired relay circuits.
LDMicro offers a wide variety of applications:
■ Bit operations such as contacts, coils, set/reset
■ Edge detection
■ Timer and on and off delays
■ Count-up, count-down, ring counter
■ 16 bit arithmetic operations with prefix.
Control programs that have been created with LDMicro can:
■ Use all inputs and outputs on the module
■ Respond to diagnostic events (short circuit, low voltage, etc.)
■ Communicate with a connected PLC
■ Release information about the network
2017-05
57
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Program files for LDMicro are named with .ld. These files can be loaded, edited and saved via
the LDMicro application. To compile a program for the control application, first select the
correct destination type under "Settings" -> "Microcontroller" -> Interpretable Byte Code. It
is also possible to set the cycle time (Settings -> MCU parameters). A cycle time of 10 ms or
more is recommended. Then select the menu "Compile" -> "Compile as..." and select a
location and a name for where the compiled program should be saved. The result is a .int file.
This file can now be uploaded to the control application via the web interface.
LDMicro recognizes the following types of data:
Bit 0 or 1
Int 16 bit integer (-32768 to +32767)
T Timer
C Counter
Microcontroller
Available Data
This data is available in the LDMicro program itself. Simply name a bit or integer variable in
LDMicro according to the following list.
2017-05
58
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Diagnostic information
Symbol Direction Type Description
X_DIA Input Bit Diagnosis master bit
X_SCS Input Bit Sensor diagnosis bit
X_SCA Input Bit Actuator diagnosis bit
X_LVS Input Bit Sensor supply voltage
error
X_LVA Input Bit Actuator drive supply
voltage error
X_COMM Input Bit Cyclic connection to
PLC established
_SCS Input Int Sensor short-circuit
information per port
_CE1 Input Int Channel error LSB
_CE2 Input Int Channel error MSB
Control
Symbol Direction Type Description
Y_STOP Output Bit Causes the control
application to stop
Y_DIS Output Bit Causes the control
application to lock
itself
2017-05
59
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Special
Symbol Direction Type Description
_MSG Output Int Show message with
the corresponding
number on web GUI
X_Bn Input Bit Virtual button on web
GUI pressed
n = button number 1 ...
10
_Pn Output Int Data for publication
n = 0 ... 1
Inputs and outputs that are used in a control program are separated from the corresponding
cyclic data to and from the PLC. However, this cyclic data can still be read and manipulated by
the control program to communicate or exchange information with the PLC. Inputs and outputs
that are NOT used can still be directly controlled by a PLC.
The module provides the PLC with 16 bit cyclic input data (production data), which is shown in
the control program with the symbol YPn , whereby n is the cyclic bit number in the range from
0 to 15. A coil with this name would control the corresponding cyclic bit in the data of the
module. Only cyclic bits that are separated from physical inputs and outputs because they are
used in a control program can be manipulated in this way.
The 8 bit cyclic output data from the PLC (consuming data) can also be read with a control
program with the XPnsymbol. n is the cyclic bit number in the range from 0 to 7. This allows the
control application to respond to events that are triggered by the PLC.
60
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
61
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
The control web interface enables the user to upload programs to the control application and
control the control status.
2017-05
62
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Control Status
The following control statuses are displayed:
Status Description
NO PROGRAM There is no program loaded or the uploaded file is not a valid program.
LOCKED The control application is locked by the master configuration (PLC).
DISABLED The control application is disabled. There is no program running and the
control application has no control over the inputs and outputs.
STOP The control application controls the inputs and outputs that are used in the
loaded program, but the program is stopped.
All other inputs and outputs can still be controlled by the master.
RUN The control application controls the inputs and outputs that are used in the
loaded program and the program is executed.
All other inputs and outputs can still be controlled by the master.
2017-05
63
ICE1-8DI8DO-G60L-*V1D, ICE1-16DI-G60L-V1D
Commissioning
Program Information
The box on the right-hand side displays certain information about the currently loaded program.
The I/O table shows all the physical inputs and outputs that are used by the PLC program. Only
these I/Os are controlled by the control program. All other I/Os can be controlled by a fieldbus
master (if available). The public table shows all public variables that are used in the program
and the corresponding values. The public variables can be obtained by sending a JSON
request to the IP address of the modules:
http://[IP address]/r/state.dcu
Auto Start
If the auto start check box is enabled, the control application starts automatically in RUN mode
if the module is switched on and if a valid program is loaded.
2017-05
64
FACTORY AUTOMATION –
SENSING YOUR NEEDS
Worldwide Headquarters
Pepperl+Fuchs GmbH
68307 Mannheim · Germany
Tel. +49 621 776-0
E-mail: info@de.pepperl-fuchs.com
USA Headquarters
Pepperl+Fuchs Inc.
Twinsburg, Ohio 44087 · USA
Tel. +1 330 4253555
E-mail: sales@us.pepperl-fuchs.com
www.pepperl-fuchs.com
Subject to modifications
Copyright PEPPERL+FUCHS • Printed in Germany / DOCT-5469A
05/2017