Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

SAIA Burgess PCD2.H110 Counting and Measurement Module

F: | Au:FAN | DA:2026-04-07 | 392 Br: | 🔊 点击朗读正文 ❚❚ | Share:

k 1       ; Module Number 1

0 Counting mode x1

r 999     ; Starting value of counter

r 998     ; Register preset value

1         ; Enable C static inversion

1         ; CCO static inversion

0 Input A is normal (counting)

0 Input B is normal

5         ; Measurement mode: Automatic frequency

100       ; Measurement window of 100 ms

0 Enable M static positive logic

2         ; TCO dynamic positive pulse

All parameters must be within the allowed range, otherwise the error flag fPar_Srr is set and the diagnostic register rDiag records the error code.

5.3 Execute Function Block EXEC

EXEC is used to send commands such as starting counters, reading count values, loading preset values, starting/stopping measurements, etc. Three parameters: module number, command code, and destination/source registers. The supported commands include:

LdCtPress: Load counter preset value

LdReppres: Load comparison register value

ModMsConf: Change measurement configuration (runtime)

LdMsVal: Set measurement window/time base

RdCt: Read the current count value (24 bits)

RdMsImp: Read and measure the original pulse count (16 bits)

RdMsUnit: Read the converted value (floating point number, Hz or s)

StartCt / StartMs / StopMs

RdIdent: Read module identifier (verify if the module is working properly, return value 17xx)

5.4 GRAFTEC Programming Example

The manual provides three complete GRAFTEC application routines, demonstrating the programming structure in practical engineering.

Example 1: Simple counter (frequency divider)

Task: Counter preset value 500, compare register 900, Enable C static inversion, CCO static positive logic. When the counter reaches 900, the CCO outputs a high level. The user program detects this and flips a digital output, reloading the counter to 500 to continue counting. The program calls INIT in the initialization step (IST), polls the CCO status in the subsequent steps, and executes overloading.

Example 2: Motion Control with Incremental Encoder

Task: The workbench is driven by a DC motor and equipped with a 500 pulse/rev incremental encoder (screw pitch 1 mm). It needs to move from the starting point A to B, pause and then return to A. During operation, it accelerates quickly and switches to slow speed when approaching the target, ultimately achieving precise positioning. This example uses x2 counting mode to directly control the fast/slow and direction of the motor through CCO output, and software polls the CCO status to achieve GRAFTEC step switching. The program also handles negative position display (by subtracting an offset to avoid negative display). This application demonstrates the capability of the H110 module as an axis positioning controller.

Example 3: Measuring object size with a photoelectric grid

Task: When an object on the conveyor belt obstructs the photoelectric grid, count the pulses proportional to the speed of the conveyor belt to measure the length of the object for sorting. Connect the photoelectric grid signal to the Enable C input (static inversion), connect the counting pulse to the A input, and connect the B input to a fixed high level (or GND after inversion). When the photoelectric grid is obstructed, the Enable C is activated and the counter starts counting; When the obstruction ends, the counter stops and the read count value is the length of the object. The program polls the CStart status in GRAFTEC and stores the results in a continuous register queue after each measurement. This scheme has been used for sorting melons and apricots in the south of France.


Error handling and diagnosis

The module will detect parameter errors during runtime. If a parameter in Initiat exceeds the range, the module will automatically set it to the minimum value and set the global error flag fPar-Err. At the same time, the diagnostic register rDiag will be encoded in bytes: FB number (1=Initiat, 2=EXEC), parameter number, and module number. For example, 00 01 06 02 indicates that parameter 6 (CCO configuration) of module 2 is incorrect. Users can clear this flag in XOB 16 or initialization step. In addition, EXEC command code errors will report "Symbol not defined" during assembly. Hardware failure can be verified by reading the identification code through RdIdent. The normal value should be 17xx (specific versions such as 2759, 1761, etc.). If it reads back 0, it indicates module failure or address error.


Parallel use of counting and measurement

The manual clearly points out that counting and frequency measurement can run in parallel on the same module. For example, in motion control examples, the frequency of the encoder signal can be measured while positioning to obtain real-time speed. Just configure the counting parameters and measuring parameters (parameter 9=5, parameter 10=window time) in INIT at the same time, call StartMs to start the measurement after initialization, and then read the measurement results in the main loop. Due to having only one display module, usually only one quantity is displayed, but PCD registers can store two values simultaneously.

  • LTi SO84.450 Servo Drive Controller - 450A Three-Phase BG7
  • LTi SO84.375 Servo Drive Controller - 375A Three-Phase BG7
  • LTi SO84.325 Servo Drive Controller - 325A Three-Phase BG7
  • LTi SO84.250 Servo Drive Controller - 250A Three-Phase BG7
  • LTi SO84.170 Servo Drive Controller - 170A Three-Phase BG6a
  • LTi SO84.143 Servo Drive Controller - 143A Three-Phase BG6a
  • LTi SO84.110 Servo Drive Controller - 110A Three-Phase BG6
  • LTi SO84.090 Servo Drive Controller - 90A Three-Phase BG6
  • LTi SO84.072 Servo Drive Controller - 72A Three-Phase BG5
  • LTi SO84.060 Servo Drive Controller - 60A Three-Phase BG5
  • LTi SO84.045 Servo Drive Controller - 45A Three-Phase BG5
  • LTi SO84.032 Servo Drive Controller - 32A Three-Phase BG4
  • LTi SO84.024 Servo Drive Controller - 24A Three-Phase BG4
  • LTi SO84.020 Servo Drive Controller - 20A Three-Phase BG3
  • LTi SO84.016 Servo Drive Controller - 16A Three-Phase BG3
  • LTi SO84.012 Servo Drive Controller - 12A Three-Phase BG2
  • LTi SO84.008 Servo Drive Controller - 8A Three-Phase BG2
  • LTi SO84.006 Servo Drive Controller - Three-Phase 230-480V 6A
  • LTi SO84.004 Servo Drive Controller - Three-Phase 230-480V 4A
  • LTi SO82.004 Servo Drive Controller - Single-Phase 230V 4A
  • HMS Anybus AB7646-F Gateway Manual
  • Schneider ATV930D75N4 Inverter Manual
  • Mitsubishi Q2ASHCPU-S1 System Manual
  • Fanuc A20B-3300-0319 Board Specification
  • Mitsubishi QD60P8-G Counter Module Guide
  • Nidec Unidrive M701 Inverter Manual
  • ABB AO895 Analog Output Module Guide
  • Mitsubishi Q2ASHCPU Controller System Manual
  • ABB Pluto S20 v2 Safety PLC Manual
  • Omron CJ1W-NC413 Position Module Manual
  • B&R X20AI4632 Analog Input Module 4 Channel
  • OMRON CS1G-CPU44H Ver. 4.1 CPU Unit PLC
  • Beckhoff EL2911-2200 TwinSAFE Logic Terminal for EtherCAT
  • Mitsubishi 2D-TZ368 Parallel I/O Interface Card
  • Mitsubishi A3ACPU PLC CPU Module for MELSEC A Series
  • Mitsubishi NF630-SEW 4P Adjustable Circuit Breaker 300-630A
  • Keyence XG-8700L Multi-camera Vision System for Inspection
  • Beckhoff C6017-0010 Ultra Compact Industrial PC
  • B&R 3AT660.6 PLC Module from Automation Panel Series
  • GE F31X300CCHALG2 PC Board with 531X133PRUAPG1 Card
  • STMicroelectronics STM32L100R8T6ATR MCU Arm Cortex-M3
  • Omron CS1W-CLK13 Controller Link Unit
  • Schneider BMENOC0301 Ethernet Communication Module
  • HELUKABEL Braids PLC-30 40 E2UK Braided Cable Sleeve
  • Pe323 h0102de323a0 PLC I/O Module
  • Mitsubishi GT2512-STBA GT2512-STBD HMI 12.1 Inch Touch Screen
  • Samsung LTM213UP01 21.3 Inch LCD Monitor Panel
  • Allen-Bradley 440R-W23219 Guardmaster Safety Relay
  • Beckhoff EL2535 EtherCAT Terminal PWM Output
  • HELUKABEL Braids PLC-40 55 E2UK Braided Cable Sleeve
  • Allen Bradley 1769-OB16 16-Point Sourcing Output Module
  • Balluff BES 516-604-DZ-3 Delay Safety Relay for Industrial Timing
  • Siemens 6GK7542-1AX10-0XE0 PROFIBUS Communication Module for S7-1500
  • GE IC693BEM340 FIP Controller for Series 90-30 PLC
  • OMRON C200HG-CPU63-E Programmable Logic Controller CPU Unit
  • Schneider EOCR-PMZ Relay Manual
  • Honeywell C36TC0UA21D0 Controller Specifications
  • Emerson Ovation VE4001S2T2B4 Input Module
  • Omron CJ1M-CPU22 CPU Specifications
  • Grundig NEA02 AES 0 Card Specifications
  • Omron CJ1W-AD081-V1 Analog Input Specifications
  • IDEC FS1A-C21S Safety Controller Manual
  • IFM O3D303 Smart 3D Sensor Specifications
  • Siemens 6SN1123-1AB00-0BA2 Power Module Guide
  • B&R 4PP035.0300-01 Power Panel Manual
  • Siemens 6ES7 153-2BA10-0XB0 IM Module
  • Beckhoff EL3356-0010 Analog Input Module
  • Siemens 3RW4037-1BB04 Soft Starter
  • Lenze EVF8216-E VFD
  • Mitsubishi GT2310-VTBA GT2310-VTBD HMI
  • Allen-Bradley 1764-28BXB PLC MicroLogix 1500
  • SP-RDM2 Relay Module Dual Reader Interface
  • Keyence GC-S84 Programmable Safety Controller
  • Mitsubishi GT2310-VTBA GT2310-VTBD HMI 10.4 Inch
  • Eurotherm MINI8 PLC Temperature Controller
  • Mitsubishi GT2512-STBA GT2512-STBD HMI 12.1 Inch
  • ABB ACS380-040S-02A6-4 VFD 0.75kW 480V
  • Dage PC514 ISSUE A PLC O.P.I Board
  • ROBICON 460T46.01 REV C Printed Circuit Board
  • Omron NX502-1300 Controller Unit NX5 CPU
  • B&R X20CM0985 PLC Module
  • Banner XS26-2DE 85064 Safety Controller
  • Siemens 3SK2122-1AA10 Safety Relay
  • HMS Anybus AB7646-F Gateway PROFIBUS EtherNet/IP
  • Siemens 6SN1118-0DM11-0AA0 SIMODRIVE 611 Card
  • Siemens C98043-A7001-L2-4 CUD1 Control Board
  • Stein Sohn E 083.1 PLC Rack Module 0010026-054100A
  • Allen Bradley 800H-2HA7P Push Button Station
  • Schneider BMXNRP0200 M340 PLC Module
  • KEPCO BOP 200-1M Bipolar Power Supply Amplifier
  • Mitsubishi Q2ASHCPU PLC Module with A1SX42 A1SY42 QC24-R2 A1SD75P2-S3
  • Siemens Siprotec 7SJ61 Overcurrent Protection
  • Keyence LJ-V7000 Controller Laser Profiler
  • Siemens 6EP3437-8SB00-0AY0 Power Supply 20A
  • Pasaban MC-2006 03 CAN Bus PLC Card
  • ETAS ES600.2 PLC Module Prototyping
  • ABB ACS800-01-0005-3+P901 Frequency Converter
  • Omron NX102-1100 PLC Module Machine Automation
  • Square D BMXCPS3500 PLC Power Supply Module
  • Allen-Bradley 96657704 Fiber Optic Converter 1771-AF
  • Corcom 20VK1 Power Line Filter
  • Novellus 2805-11407 PLC Rack Assembly
  • Sick RLY3-EMSS100 Safety Relay Module
  • Microchip PIC12F508-I/P Microcontroller
  • Fanuc A02B-0098-B511 Motherboard
  • Merlin Gerin PB80 PLC Rack Module
  • ABB Pluto S20 V2 CFS Safety PLC
  • Honeywell TK-PRR021 Redundancy Module
  • B&R 7XX419L.50-1 Bus Controller
  • Mitsubishi NV400-SW 3P 300A Breaker
  • B&R X20AT2222 Temperature Module
  • Corcom 20VK1 EMI RFI Filter
  • Novellus 2805-11407 PLC Rack Assy
  • Mitsubishi FXAOM01BD Analog Output Module 4CH
  • NORIS A1-91 PCB Rack Module A1-91-4 A1-91-5 A1-91-6 A1-91-7 A1-91-8
  • Omron ZFV-SC50 Smart Camera Vision Sensor
  • Schneider Electric EOCR-PMZ Motor Protection Relay
  • B&R X20 SO 6300 PLC Module Safety Output
  • Mitsubishi A2ACPU21-S1 CPU Module MELSEC
  • Siemens 6ES7405-0KA02-0AA0 PS405 10A Power Supply
  • Samsung PVU-2424 Power Supply Unit DC24V 24W
  • ATTO controlSYS ATT0-CPU44 PLC with Display
  • Lenze EPZ-10203 CANPT010W3E Absolute Encoder
  • GE IS215WEMAH1A+IS210BPPBH2CAA Mark VIe Embedded Processor and Backplane Power Distribution Board
  • GE IS215AEPAH1CH+IS210BPPBH2CAA Mark VIe Application Processor and Backplane Power Distribution Board
  • GE IS215WECAH1B+IS210BPPBH2CAA Mark VIe Control Platform
  • GE PCM Regulator for EX2100e Power Conversion Module 151X1235DB15SA1
  • Lenze ECSEA048C4B servo drive