Pāriet uz galveno saturu Pāriet uz meklēšanu Pāriet uz galveno navigāciju

Factory & machine automation

Win-GRAF soft PLC: IEC 61131-3 programming on an ICP DAS PAC

What Win-GRAF PACs are, which IEC 61131-3 languages and I/O options they offer, and when a PAC makes more sense than a classic PLC.

Win-GRAF soft PLC: IEC 61131-3 programming on an ICP DAS PAC
Photo: Farzad Nazifi · CC0 · Wikimedia Commons

A soft PLC runs IEC 61131-3 control programs on an industrial computer instead of on dedicated PLC hardware. ICP DAS offers this as Win-GRAF PACs: programmable automation controllers with the Win-GRAF runtime built in. This article explains what a Win-GRAF soft PLC is, which languages and engineering functions it offers, how I/O is added, and when a PAC is a better choice than a classic PLC.

What a Win-GRAF soft PLC is

Each Win-GRAF PAC combines a CPU, an operating system and an embedded Win-GRAF SoftLogic runtime. The control program is written on a PC in the Win-GRAF Workbench, downloaded to the PAC and executed there in cycles, as on a PLC. The operating system depends on the family: Windows CE 7.0 on the WP-5238-CE7, WP-8x28-CE7 and WP-9x28-CE7, Windows CE 6.0 on the XP-8x38-CE6, Windows 10 IoT Enterprise on the XP-9xx8-IoT, and Linux with the Xenomai real-time core on the RPAC-2658M.

Because the PAC has a full operating system, other software can run next to the control program. The Windows CE models support applications written in VB.NET or C# with Visual Studio 2008, which exchange data with the Win-GRAF application, for example for an HMI or data management. For machines built around a PC, the Win-GRAF PC Runtime turns a standard or industrial Windows PC into a soft PLC. It is supplied with a USB dongle, and the Workbench is not included in that package.

Languages and engineering functions

The Win-GRAF Workbench supports all five languages defined in IEC 61131-3:

  • Ladder diagram (LD) for discrete logic that electricians can follow
  • Function block diagram (FBD) for signal flow and control loops
  • Structured text (ST) for calculations, loops and data handling
  • Sequential function chart (SFC) for step sequences
  • Instruction list (IL), mainly for existing code, since the third edition of the standard marks it as deprecated

Several languages can be used in one project, a program can be converted into another language, and two versions of a project can be compared. Tasks run with priority settings, and reusable code can be kept in user libraries.

The PAC runtime adds functions that matter during commissioning and operation: online change, retain variables, schedule control, data binding, file access and data logging, and application protection. On the communication side, the PACs list OPC UA server, Modbus TCP master and slave, Modbus RTU master and slave, DCON and user-defined protocols for serial devices.

I/O expansion: local slots and remote modules

Most Win-GRAF PACs have slots for ICP DAS PAC I/O modules, so the controller and its local I/O form one DIN-rail unit. The WP-8x28-CE7 and XP-8x38-CE6 take I-8K parallel and I-87K serial modules, the WP-9x28-CE7 and XP-9xx8-IoT take I-9K and I-97K modules, and the compact WP-5238-CE7 uses an XV-board expansion board. The table below gives the slot counts.

Remote I/O is connected through the serial and Ethernet ports. As a Modbus RTU master the PAC can poll M-7000 or tM modules on RS-485, as a Modbus TCP master it can read ET-7000, ET-7200 or ET-2200 modules, and the DCON support covers the I-7000 series. A machine can then use local I/O for signals in the main cabinet and distributed I/O close to sensors and actuators.

For motion, ICP DAS also has Win-GRAF based EtherCAT controllers with PLCopen function blocks. The EMP-2848M controls up to 128 EtherCAT slaves and 16 axes at cycle times down to 500 µs, and the EMP-9xx8 series handles up to 32 axes at a 0.5 ms cycle time.

Which Win-GRAF PAC fits

FamilyOperating systemCPULocal I/ONotes
WP-5238-CE7Windows CE 7.0Cortex-A8, 1 GHzXV-boardCompact, 4 serial ports, 12 to 48 VDC supply
WP-8x28-CE7Windows CE 7.0Cortex-A8, 1 GHz1, 4 or 8 slots, I-8K/I-87KVGA output, redundant power inputs
WP-9x28-CE7Windows CE 7.0Cortex-A8, 1 GHz2, 4 or 8 slots, high-profile I-9K/I-97KMetal case, VGA output
XP-8x38-CE6Windows CE 6.0x86 dual-core, 1 GHz0, 1, 3 or 7 slots, high-profile I-8K/I-87KDual-PAC redundancy
XP-9xx8-IoTWindows 10 IoT Enterprise, 64-bitIntel Atom E38451, 3 or 7 slots, I-9K/I-97KVGA and HDMI, dual-PAC redundancy
RPAC-2658MLinux with XenomaiCortex-A9 quad-core, 1 GHzRemote I/O over Modbus or DCON3 Gigabit Ethernet ports, dual-PAC redundancy
ViewPAC VP-1238/4238/6238-CE7Windows CE 7.0Cortex-A8, 1 GHz3 slots, high-profile I-8K/I-87K5.7, 10.4 or 15 inch display, IP65 front panel

When a PAC makes sense instead of a classic PLC

A Win-GRAF PAC is programmed like a PLC, so the choice is less about the control logic and more about what else the controller has to do. A PAC is a good fit when:

  • Control and data handling belong in one device, such as logging to files, a local SQL database on the Windows CE models, or OPC UA for an MES.
  • The machine talks to many devices on different ports and protocols, including serial instruments with their own protocol.
  • An operator interface is needed on the controller itself, through the VGA output with eLogger HMI or on a ViewPAC with a built-in display.
  • Custom software in C# or VB.NET has to share data with the control program.
  • Controller redundancy is required, using the dual-PAC redundancy of the XP-8x38-CE6, XP-9xx8-IoT or RPAC-2658M.

A classic PLC is often the simpler choice when the plant standard prescribes a PLC platform and its engineering tools, or when maintenance staff are trained only on that platform. Safety functions need a controller or relay that is certified for that purpose, whichever platform runs the rest of the machine.

Users of older ISaGRAF PACs should note that ICP DAS states ISaGRAF cannot run on 64-bit Windows 7 and 8 PCs and points to Win-GRAF as the alternative.

Send technical sales a short description of the machine, its I/O count and the protocols involved, and we will suggest a suitable Win-GRAF PAC and I/O modules.

Products for this application

e-USB404 CR
e-USB404 CR e-USB404 4-Port USB 3.1 Gen 1 Expansion Module, e-Bus x4

The e-USB404 CR adds four independent USB 3.1 Gen 1 host controllers to an AXP-9000-IoT Programmable Automation Controller through a single e-Bus x4 slot. It suits engineers who need several USB devices running at the same time, particularly USB vision cameras that generate large volumes of image data.Each port has its own controller and an LED status indicator, and all four Type-A connectors are accessible on the panel for straightforward wiring. Each port supplies 5 V at up to 900 mA, with overload and short-circuit protection. Power to each port can be switched on and off in software through the SDK, which allows a hung USB device to be reset for failure recovery.Transfer modes: SuperSpeed (5 Gbps), High Speed (480 Mbps), Full Speed (12 Mbps) and Low Speed (1.5 Mbps)Supported on Microsoft Windows 7/8.1/10 and LinuxOperating temperature -25 ~ +60 °CTypical uses are frame grabbing in machine vision inspection, automated optical inspection, quality assurance and medical imaging.ApplicationsMachine vision inspectionAutomated optical inspectionQuality assuranceMedical imaging

Regulārā cena: 211,00 € per piece · volume discount from 10 pcs
I-8014CW-G CR
I-8014CW-G CR I-8014CW-G Current Input Module, 8-ch Differential, 16-bit 250 kS/s

The I-8014CW-G CR is an analog input module for engineers who need fast, accurate current measurement across eight differential channels. Each channel is sampled with 16-bit resolution, and single-channel pacer mode reaches 250 kS/s, with a ±20 mA input range and 2500 VDC intra-module isolation.The Magic Scan function lets individual channels be scanned at different input ranges while keeping the sampling rate at 250 kS/s during single-channel scans. It can run as a standard scan or as a Virtual Sample and Hold function, which offers a lower-cost alternative to hardware sample-and-hold on many analogue cards.A 4 K-sample onboard FIFO buffer stores conversion results. When the sample count passes a pre-defined FIFO level, an interrupt notifies the host. Combined with post-trigger external trigger mode and internal or external trigger start, this suits high-speed and time-critical acquisition tasks such as vibration analysis.ApplicationsHigh speed data acquisition systemsVibration analysis

Regulārā cena: 353,00 € per piece · volume discount from 10 pcs
I-8014W-G CR
I-8014W-G CR I-8014W-G Analog Input Module, 16/8-ch Voltage/Current, 16-bit 250 kS/s

I-8014W-G CR is a high-performance analog input module for engineers who need fast, accurate capture of voltage and current signals. It provides up to 16 single-ended or 8 differential inputs, selectable by jumper, with 16-bit resolution and a single-channel pacer sampling rate of 250 kS/s.The Magic Scan function lets each input channel use its own input range, and single-channel scanning keeps the full 250 kS/s rate. Magic Scan can run as a standard scan or as a Virtual Sample and Hold function, which offers sample-and-hold style operation without the cost usually associated with that feature on analog input cards.A 4 k-sample onboard FIFO buffer stores conversion results. When the sample count exceeds a predefined FIFO level, an interrupt notifies the host, which suits time-critical acquisition tasks such as vibration analysis. Internal or external trigger start and post-trigger external trigger modes are supported.ApplicationsHigh-speed data acquisition systemsVibration analysis

Regulārā cena: 353,00 € per piece · volume discount from 10 pcs
I-8017DW-G CR
I-8017DW-G CR I-8017DW-G Analog Input Module, 8/16-ch, 14-bit, 100 kHz, DB37 Connector

The I-8017DW-G is an analog input module for engineers who need fast, multi-channel acquisition from voltage or current sources. It accepts 8 differential or 16 single-ended inputs, with 14-bit resolution and a 100 kHz bandwidth.Each channel can be configured individually for ±10 VDC, ±5 VDC, ±2.5 VDC, ±1.25 VDC or ±20 mA. Current input is selected with a jumper, and the internal resistor for differential current measurement is also jumper-selectable. The module is supplied with voltage input selected by default. Sampling reaches 90 kS/s in single-channel polling mode, 50 kS/s in single-channel interrupt mode and 16 kS/s in 8-channel scan mode.Isolation is rated at 2500 VDC intra-module, and each terminal is protected against ±4 kV ESD contact discharge. The I-8017DW-G-G CR order includes a CA-4002F DB37 female connector with plastic cover, so it is ready for field wiring.ApplicationsHigh speed data acquisition systemsProcess monitoring and controlVibration analysisDigital pattern generation from a digital I/O port

Regulārā cena: 293,00 € per piece · volume discount from 10 pcs

More on Factory & machine automation

Need help choosing?

We know the ICP DAS range and help you find the right module, accessory or replacement part.

Contact technical sales

For business customers

  • Quantity discounts applied automatically
  • VAT-free delivery within the EU with a verified VAT number
  • Datasheets and full specifications for every product
Create business account