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 | 778 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.

  • ENOTEC OXITEC 5000 SME-53310000 Oxygen Analyzer
  • SIGMATEK Krauss Maffei PC301-K 01-310-301-K Industrial PC
  • SIGMATEK SDD310-23 VARAN Servo Drive
  • SIGMATEK CDM 163 and CIC 011 C-DIAS Input Modules
  • SIGMATEK MDP 101-1 Power Module
  • SIGMATEK CM5V020 Wiring Circuit with CTMS020
  • SIGMATEK CCP521 C-DIAS Processor Module
  • SIGMATEK MDP 101-K Power Module
  • SIGMATEK ETEK C-IPC 733MHz VIA Eden 7000
  • SIGMATEK DCP 643 DIAS PLC CPU Module
  • SIGMATEK TAE121 12-200-121 Operator Terminal
  • Sigmatek TMS012-T Injection Moulding Technology Module
  • Sigmatek MDD 121-1 Controller
  • Sigmatek CDM167 Module
  • Sigmatek DCP082 DIAS Central Unit
  • Sigmatek ETT731 Built-In Terminal Touch
  • Sigmatek CCP521 C-DIAS Processor Module
  • Sigmatek Krauss Maffei PC301-K Control Cabinet PC
  • Sigmatek CIC-21 C-DIAS CAN Module
  • Sigmatek CIO-011 Multi I O Module
  • Sigmatek 01-450-152D C-IPC 152 Industrial PC
  • SIGMATEK 01-450-024 C-IPC 128MB VIA 733MHz
  • SIGMATEK CCL-081 C-DIAS Processor Module
  • SIGMATEK CP311 20-004-311 Module
  • SIGMATEK EP00000262 SLIDES MIDI I O-V3 Controller
  • SIGMATEK TMS012-T Slides Technology Module
  • SIGMATEK MDD111-1 Drive Axis Module
  • SIGMATEK MDP101-1 PLC Module
  • SIGMATEK CP111 S-DIAS Processor Module
  • DEMAG ErgoControl Sigmatek NC4 Display Unit
  • SIGMATEK DCP642 Module
  • Sigmatek Demag NC4 9617.067.03 Control Module
  • Sigmatek DCP 643 Central Processing Unit
  • Sigmatek VI 021 S-SLIDES VARAN Interface Module
  • Sigmatek SDD340-46 Servo Drive 14kVA
  • Sigmatek DSI021 Slide Siemens Interface
  • Sigmatek CCL912 C-SLIDES CPU PSU Module
  • Sigmatek ETV1521 VARAN Control Panel
  • Sigmatek ET322 Operator LCD Terminal
  • Sigmatek MDD1111 DIAS Drive Module
  • Sigmatek CAM123 Module
  • SIGMATEK CP111 VARAN Ethernet Controller
  • SigmaTek MDD 111 Axle Module
  • SIGMATEK CIO013 C-DIAS I O Module
  • SIGMATEK AKM52K-ANC2GBB0 Servomotor 640VDC
  • SIGMATEK ETT321 01-230-321 Touch Screen
  • SIGMATEK NC4Kompakt 01-250-010-D Safety Controller
  • SIGMATEK CIO011 C-DIAS Multi I O Module
  • SIGMATEK MDD 121-1 Drive Axis Module
  • SIGMATEK CDM163 Control Module
  • Sigma-Tek 4000HR-3 Heading Reference Directional Gyro
  • Sigmatek DIAS DAI 883 Analog Input Module
  • Sigmatek 0332.554.03 Printed Circuit Board Card
  • Sigma Tek 5000B-36 Attitude Gyro 8130
  • Demag NC4 0332.554.03 Sigmatek Control Board
  • Sigmatek IPC Pentium 300 CF Industrial PC
  • Sigmatek MDP 102 PLC Module
  • Sigmatek DTO163 Digital Output Module
  • Sigmatek PCT151 Touch IPC 15 Panel and I-PC C300
  • Sigmatek CCL911 CD Processor Module
  • Sigmatek SCP011 S-DIAS Safety CPU Module
  • Sigmatek SE051 Network Splitter Module
  • Sigmatek CIO011 C-DIAS I O Module
  • Sigmatek SE051 Ethernet Splitter
  • Sigmatek CCL911 CD Processor Module
  • Sigmatek SDD310-4 DIAS Drive 14kVA
  • Sigmatek CTMS020 C-DIAS Technology Module
  • Sigmatek CTMS020 CD Technology Module
  • Sigmatek CTO167 C-SLIDES Digital Output Module
  • Sigmatek C-IPC 152 Industrial PC
  • Sigmatek SDD310-4 SLIDES Drive 310
  • SIGMATEK MDP 102-1 DIAS Power Module
  • SIGMATEK SCP111 S-DIAS Safety CPU Industrial
  • SIGMATEK CAO081 Analog Output Module
  • SIGMATEK DCC080L Control Module
  • SIGMATEK MDP101-1 Power Module
  • SIGMATEK SCP111 S-DIAS Safety CPU
  • SIGMATEK PC325-K Industrial PC
  • SIGMATEK ETT 731 Operator Terminal
  • SIGMATEK DSV011 SLIDES Hub Module 05-023-011
  • SIGMATEK 12-780-012 R8-IPC Industrial Computer
  • Sigmatek SE051 Ethernet Splitter
  • Sigmatek DAI 883 DIAS Analog Module
  • Sigma Tek 4000B-30 Directional Gyro
  • Sigmatek CP112 S-DIAS Processor Module
  • Sigmatek SDD310 DIAS Drive
  • Sigmatek SDD120-23 DIAS Drive 14kVA
  • Sigmatek C-IPC 152 Industrial PC
  • Sigmatek CIV513 VARAN Control Module
  • Sigmatek DCP 082 Processor Module
  • Sigmatek C-IPC Industrial PC 01-450-023 GEB
  • SIGMATEK PC572 Operating Terminal
  • SIGMATEK DCC041 DIAS Compact Controller HW 6.10
  • SIGMATEK C-IPC 152 1GB Celeron M440 Controller
  • SIGMATEK 01-310-322-K PC322-K Industrial PC
  • SIGMATEK TAE732-P Touch Screen Operator Panel
  • SIGMATEK 01-018-100 Control Module
  • SIGMATEK DDI-164 Digital Input Module
  • Sigma-Tek 5000B-36 Artificial Horizon
  • SIGMATEK 12-780-012 R8-IPC Geode LX800 Computer
  • SIGMATEK CTMS 020 Servo Drive
  • Sigmatek MDD121-1 Controller
  • Sigmatek ETV1021-L VARAN Terminal
  • Sigmatek DST022 DIAS Module
  • Sigmatek CCP512-K C-Dias Processor Module
  • Sigmatek SRO 021 Relay Output Module
  • Sigmatek SDI 101 Digital Input Module
  • Sigmatek IPC 221 Industrial PC
  • Sigmatek DNC-305 Digital Input Module
  • Sigmatek SDD335 DIAS Drive
  • Sigmatek C-IPC Industrial Controller
  • SIGMATEK 01-450-031 C-IPC 256MB LX800 Computer
  • SIGMATEK SDD310-3 DIAS Drive 310
  • SIGMATEK DSV011 SLIDES Hub Module 05-023-011
  • SIGMATEK CNC031 CD Analog Module 12-011-031
  • SIGMATEK 01-450-031 C-IPC 256MB LX800
  • SIGMATEK 01-450-026 C-IPC VIA 733MHz Controller
  • SIGMATEK DCP-643 DIAS CPU Module with DKL-003
  • SIGMATEK MDD111-L DIAS Drive Axis Module
  • SIGMATEK SDD310-23-L DIAS Drive 310
  • SIGMATEK Viscotec ETV0551 Touch Panel
  • SIGMATEK PC321K Industrial Computer
  • SIGMATEK MDP 102-1 SLIDES Power Module
  • SIGMATEK TAE-151 12-200-151 Light Terminal
  • SIGMATEK CP102 20-004-102P6995B HMI Panel
  • SIGMATEK CAM-123 12-017-123-C Analog Mixing Module
  • SIGMATEK DCC041 DIAS Compact Controller
  • SIGMATEK DVI021 and DKL015 DIAS Power Module