Edge Detectors - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
4.5.2

Edge Detectors

Falling Edge Trigger
These function blocks detect the changing state of a Boolean signal and produce a single pulse when
an edge is detected.
When transitional instructions, such as Transition Coils or Transition Contacts, are used inside a
function block, there is a problem when the same function block is called more than once per scan.
The first call executes the transition correctly but subsequent calls do not because they see the state
as adjusted from the first call. The rising and falling edge trigger instructions solve this problem.
These instructions have their own instance data that can be a member or an input of the function
block so that the transition state follows that of the function block instance and not the function
block.
If an edge detector function block is used within a UDFB, its instance data must be a member
variable of the UDFB.
Operands
Parameter Description
????
Instance data for function block. This is a
structure variable, described below.
CLK
Input to be monitored for a change in state. All
Q
Edge detection output.
Instance Data Structure
These elements cannot be published or written to.
Element Name
CLK
Q
STATE
ENO
106
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Rising Edge Trigger
Type
Description
BOOL
Edge detection input. Not accessible in user logic.
BOOL
Edge detection output. Accessible in user logic. Read only.
BOOL
Internal value. Not accessible in user logic.
BOOL
Enable Output. User logic can access as read-only.
Allowed Operands
F_TRIG, R_TRIG
Must be flow in LD. In other languages all
types allowed except S, SA, SB, SC and
constants.
Optional
No
Yes
Yes
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents