
PACIO MODULES
130
Parker Automation Controller Installation Guide
Counter Set/Clear
Copying the contents of "SetValue_1" into the current value is executed by a rising edge to "SetCounter_1".
Execution is indicated by "CounterSet_1=TRUE". If "SetCounter_1" is reset (FALSE) again, "CounterSet_1"
also becomes FALSE again.
Term2_SetValue_1:=diCounterValue;
(*Copy a number into the source var*)
(* 0 = Clear*) and
Term2_SetCounter_1:=TRUE;
(*copy to the counter current value*)
Term2_CounterSet_1;
(*TRUE, if set*)
Set Compare Value
Configuration settings set in "Counter 1 Options" are activated by the rising edge of the control bit
"SetOptions_1". The successful take-over of the options is confirmed with the status bit "OptionsSet_1".
For example, set compare function.
PROGRAM Initialization
VAR
bInit: BOOL := TRUE;
Step: USINT;
END_VAR
------------------------------------------------------------------------------
IF bInit THEN
CASE Step OF
(*Select options, activate them by a rising edge to "Set_Options"*)
0:
Term2_EnableCounter_1:=TRUE;
(*Release counter*)
Term2_EnableCompare_1:=TRUE;
(*Activate compare function*)
Term2_ControlOutput_1:=TRUE;
(*Compare function controls Output*)
Term2_SetValue_1:=10000;
(*Set value = 10000..*)
Term2_SetCompare_1:=TRUE;
(*..use as compare value*)
Term2_SetOptions_1:=TRUE;
(*Activate selected options*)
Step:= 1;
(* Wait for confirmations "OptionsSet" and "CompareSet"*)
1:
IF Term2_OptionsSet_1 AND Term2_CompareSet_1 THEN
Step:= 2;
END_IF
(* Set "Set_Options" and "SetCompare" in the starting position*)
2:
Term2_SetOptions_1:=FALSE;
Term2_SetCompare_1:=FALSE;
Summary of Contents for PAC
Page 11: ...CHAPTER 1 Product Overview...
Page 18: ......
Page 19: ...CHAPTER 2 Installation...
Page 33: ...CHAPTER 3 System Start up and Configuration...
Page 69: ...CHAPTER 4 PACIO Modules...
Page 143: ...2 After adding the device and code to the project you will configure the IO map as displayed...
Page 155: ...PAC with 400XR series...
Page 156: ...PACIO MODULES 156 Parker Automation Controller Installation Guide...
Page 157: ...PAC with 400LXR...
Page 158: ...PACIO MODULES 158 Parker Automation Controller Installation Guide PAC with SMH sensors...
Page 159: ...CHAPTER 5 Communication Interfaces Optional...
Page 176: ......
Page 177: ...CHAPTER 6 Troubleshooting...
Page 188: ...TROUBLESHOOTING 188 Parker Automation Controller Installation Guide...
Page 189: ...APPENDIX A PAC System Specifications...
Page 195: ...APPENDIX B Additional Information...