
Step:=0;
bInit:=FALSE;
END_CASE
END_IF
Set Preset Value
Copying the value of "SetValue_1" into the preset value is executed by "PresetSet_1=TRUE". If
"SetPreset_1" is reset (FALSE) again, "PresetSet_1" also becomes FALSE again.
Term2_SetValue_1:=diPresetValue;
(*Copy a number into the source var*)
Term2_SetPreset_1:=TRUE;
(*Copy to the preset value*)
Term2_PresetSet_1;
(*TRUE, if set*)
Set Maximum Value
Copying the value of "SetValue_1" into the preset value is executed by "MaxSet_1=TRUE". If "SetMax_1" is
reset (FALSE) again, "MaxSet_1" also becomes FALSE again.
Term2_SetValue_1:=diMaxValue ;
(*Copy a number into the source var*)
Term2_SetMax_1:=TRUE;
(*Copy to the maximum value *)
Term2_MaxSet_1;
(*TRUE, if set*)
Set Counter Range
The counter range is controlled by an internal 'maximum value' register which defaults to 2,147,483,647
which means the overall counter range is 0 to 2,147,483,647. To change this range, load SetValue_1
(SetValue_2) to the desired maximum value and then set the Boolean SetMax_1 (SetMax_2) which will
transfer the maximum value into the internal register. Once this is loaded the Boolean MaxSet_1
(MaxSet_2) will reflect that it has been updated.
SetValue_1 := 2,147,485,647;
(*Desired range is 0 to 2,147,483,647*)
SetMax_1:= TRUE;
(* Set the new maximum value *)
Or
SetValue_1 := 4,294,967,294; (*Desired range is -2,147,483,647 to
2,147,483,647*)
SetMax_1:= TRUE;
(* Set the new maximum value *)
Here is a sample state machine:
CASE State OF
(* Configure the PACIO454-01 Encoder/Counter Module
channel 1 as a quadrature incremental encoder input port *)
(* The variables EnableCounter1, SetValue1, SetMax1, EnableCounter1, and Counting1
are declared as global variables directly in the PACIO_Counter_Enc_5V EtherCat I/O
Mapping page. Encoder_Configured1 is just a local variable to flag the counter is
enabled. *)
Содержание PAC
Страница 11: ...CHAPTER 1 Product Overview...
Страница 18: ......
Страница 19: ...CHAPTER 2 Installation...
Страница 33: ...CHAPTER 3 System Start up and Configuration...
Страница 69: ...CHAPTER 4 PACIO Modules...
Страница 143: ...2 After adding the device and code to the project you will configure the IO map as displayed...
Страница 155: ...PAC with 400XR series...
Страница 156: ...PACIO MODULES 156 Parker Automation Controller Installation Guide...
Страница 157: ...PAC with 400LXR...
Страница 158: ...PACIO MODULES 158 Parker Automation Controller Installation Guide PAC with SMH sensors...
Страница 159: ...CHAPTER 5 Communication Interfaces Optional...
Страница 176: ......
Страница 177: ...CHAPTER 6 Troubleshooting...
Страница 188: ...TROUBLESHOOTING 188 Parker Automation Controller Installation Guide...
Страница 189: ...APPENDIX A PAC System Specifications...
Страница 195: ...APPENDIX B Additional Information...