Changes for page 06 Basic instructions
Last modified by Iris on 2025/10/20 11:22
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 3 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4084,8 +4084,6 @@ 4084 4084 4085 4085 4086 4086 4087 - 4088 - 4089 4089 **Error code** 4090 4090 4091 4091 |=**Error code**|=**Content** ... ... @@ -6059,9 +6059,6 @@ 6059 6059 6060 6060 [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml7464\wps2.jpg]] 6061 6061 6062 -(% style="text-align:center" %) 6063 -[[image:企业微信截图_17580029957928.png||height="259" width="538"]] 6064 - 6065 6065 For the time stored in (d), when the execution time is[[image:图片1.png]] (unit: second), the actual value of (d) is as follows according to the magnification specified in (s). 6066 6066 6067 6067 |**(s)**|**Magnification**|**(D)** ... ... @@ -6099,110 +6099,3 @@ 6099 6099 **Example** 6100 6100 6101 6101 Example 1 6102 - 6103 -== **External IO instructions** == 6104 - 6105 -=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps2.png]]**ARWS/Arrow Switch** === 6106 - 6107 -**ARWS** 6108 - 6109 -Use the arrow switches for digit movement and increase or decrease of digit values to input data instructions. 6110 - 6111 --[ARWS (s) (d1) (d2) (n)] 6112 - 6113 -**Content, range and data type** 6114 - 6115 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6116 -|(s)|The start device number that input|-|BIN16 bit|ANY_BOOL 6117 -|(d1)|The word device number storing BCD conversion data|-|BIN16 bit|ANY_BOOL 6118 -|(d2)|The start bit device (Y) that connect the display of the 7-segment digital tube|0 to 9999|BIN16 bit|ANY16_S 6119 -|(n)|Specify the number of digits displayed by the 7-segment digital tube (Setting range: K0 to K3)|0 to 3|BIN16 bit|ANY16_S 6120 - 6121 -**Device used** 6122 - 6123 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6124 -**Index** 6125 - 6126 -**modification** 6127 -)))|((( 6128 -**Pulse** 6129 - 6130 -**extension** 6131 -))) 6132 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6133 -|(% rowspan="4" %)ARWS|Parameter 1|●|●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 6134 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●| 6135 -|Parameter 3| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6136 -|Parameter 4| | | | | | | | | | | | | | | | | | | | | |●|●| | | 6137 - 6138 -**Features** 6139 - 6140 -16-bit operation (ARWS). The 16-bit BIN value from 0 to 9999 is stored in D+1. For the sake of convenience, the following description is displayed in BCD conversion. 6141 - 6142 -When the instruction input is ON, the ARWS instruction will operate as shown below 6143 - 6144 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps3.png]][[image:1758526599000-920.png]] 6145 - 6146 -Display and operation part of the content 6147 - 6148 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps4.png]][[image:1758526656501-227.png]] 6149 - 6150 -1. The digit specification of n displayed by the 7-segment digital tube with BCD code 6151 - 6152 -A 4-digit (10^^3^^ digit) is used as an example in the following operation description, . 6153 - 6154 -1. The action of the digit selection switch (S+2, S+3) 6155 - 6156 -1. The action when input S+2 with reduced digits is ON.Each time the switch is pressed, the number of digits specification is changed according to 10^^3^^ →10^^2^^ →10^^1^^ →10^^0^^ →10^^3.^^ 6157 -1. The action when the input S+3 with increased digits is ON. Each time the switch is pressed, the number of digits specification is changed according to 10^^3 ^^→ 10^^0 ^^→ 10^^1 ^^→ 10^^2 ^^→ 10^^3^^. 6158 - 6159 -1. The action of the LED for displaying the selected digits (D2+4 to D2+7). The specified number of digits can be displayed by LED by strobe signal D2+4 to D2+7. 6160 -1. The operation of the data change switch in units of digits (S, S+1). The data is changed for the number of digits specified by the "digit selection switch" above. 6161 - 6162 -1. Increase the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→1→2→...→8→9→0→1. 6163 -1. Reduce the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→9→8→7...1→0→9. 6164 - 6165 -These contents can be displayed in the 7-segment digital tube display. 6166 - 6167 -As shown above, through a series of operations, you can write the target value into D1 while viewing the 7-segment display. 6168 - 6169 -**✎Note:** 6170 - 6171 -* The setting of parameter n 6172 - 6173 -Please refer to the parameter setting of SEGL (FNC 74) instruction. The setting range is 0 to 3. 6174 - 6175 -* The output format of the programmable controller, please use a transistor output type programmable controller. 6176 -* About scan time (operation cycle) and display timing 6177 -* The ARWS instruction is executed synchronously with the scan time (operation cycle) of the programmable controller. 6178 -* In order to perform a series of displays, the scan time of the programmable controller needs to exceed 10ms. 6179 -* When it is less than 10ms, please use the constant scan mode and run with a scan time longer than 10ms. 6180 -* Number of occupied points of the device 6181 - 6182 -1. The input of the device s occupies 4 points. 6183 -1. The output of the device d2 occupies 8 points. 6184 - 6185 -* Restrictions on the times of the uses of instructions 6186 - 6187 -Only one ARWS instruction can be used in the program. 6188 - 6189 -**Error code** 6190 - 6191 -|**Error code**|**Content** 6192 -|4084H|The data input in the application instruction (d1) and (d2) exceeds the specified range 6193 -|4085H|The output result of the read application instruction (s), (d1) and (d2) exceeds the device range 6194 -|4086H|The output result of the write application instruction (d1) and (d2) exceeds the device range 6195 - 6196 -**Example** 6197 - 6198 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps5.jpg]] 6199 - 6200 -The corresponding hardware wiring is shown in the figure below, and the PLC should be transistor output type: 6201 - 6202 -[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps6.jpg]] 6203 - 6204 -(1) The digital tube in the figure shows the value of D0. Press X10 to X13 to modify the value. The value of D0 can only be between 0 and 9999. 6205 - 6206 -(2) When X20 is ON, the cursor position is thousands. Each time the back key (X12) is pressed, the specified position is switched in the order of "thousands → hundred → ten → pieces → thousand"; if the forward key (X13) is pressed, the switching sequence is reversed; the cursor position is determined by the strobe pulse signal (YO04 to YOO7) LED indication of connection. 6207 - 6208 -(3) For the cursor position, each time you press the increment key (X11), the content of the position changes by 0 → 1→ 2→……8→9→0→1, and when you press the decrement key (X10), press 0 →9→8→7→…… 1→0→9 changes, the modified value takes effect immediately.
- 1758526599000-920.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -13.2 KB - Content
- 1758526656501-227.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -102.5 KB - Content
- 企业微信截图_17580029957928.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -17.2 KB - Content