Appendix 3 GM Function Block Conversion Program
App3-10
4. Comparison function setting function block
(1) GM comparison function setting function block (HSCC_CMP)
- Comparison function setting function sets reference value to compare
Function Block
type
Classific
ation
Variable
name
Type
Contents
REQ BOOL
FB execution
Executed when changing “0->1” ( : Rising edge)
BASE USINT
Base Number
Base number where HSC module is equipped
SLOT USINT
Slot Number
Slot number where HSC module is equipped
Ch0
0
CH BOOL
CH
Ch1
1
0
<
Single Comp: small
1
≤
Single Comp: small or same
2
= Single:
same
3
≥
Single Comp: large or same
4
>
Single Comp: large
5
≤
≤
Sampling
Comp:
include
CMP0_SEL/C
MP1_SEL
USINT
Comp
Output
type
6
≥
≤
Sampling
Comp:
exclusive
CMP0_MIN/C
MP1_MIN
DINT
Single or
sampling Comp
Min. setting
-2,147,483,648
2,147,483,647
∼
Input
CMP0_MAX/
CMP1_MAX
DINT
Sampling Comp
Max. setting
-2,147,483,648
2,147,483,647
∼
DONE BOOL
Execution status
If it completes, it outputs 1 and holds. If error occurs, it
outputs 0
Output
STAT USINT
Error status
In case of error, outputs error code
(1) XGI/XGR Comp function setting function block
(a) Comp Output 0
Function Block type
Classification
Variable
name
Type
Contents
REQ BOOL
FB execution
Executed when changing “0->1” ( : Rising
edge)
BASE USINT
Base Number
Base number where HSC module is equipped
SLOT USINT
Slot Number
Slot number where HSC module is equipped
Ch0
_Fxy_CH0_CP0_MODE 08
MADDR
UINT
CH
Ch1
_Fxy_CH1_CP0_MODE 33
0
< Single
Comp:
small
1
≤
Single Comp: small or same
2
= Single
Comp:
same
3
≥
Single
Comp:
larger
or
same
4
> Single
Comp:
large
5
≤
≤
Sampling
Comp:
include
Input
DATA DWORD
Comp
output
setting
6
≥
≤
Sampling
Comp:
exclude
DONE BOOL
Execution status
If it completes, it outputs 1 and holds. If error
occurs, it outputs 0
Output
STAT USINT
Error status
In case of error, outputs error code
Summary of Contents for XGF-HD2A
Page 56: ...Chapter 4 Operation Procedures and Monitoring 4 12 ...
Page 59: ...Chapter 4 Operation Procedures and Monitoring 4 15 ...
Page 90: ...Chapter 7 Program 7 24 b Scan program of XGI XGR series ...
Page 127: ...Appendix 3 GM Function Block Conversion Program App3 20 e Auxiliary Function Operating ...