Changes for page 12 Clock operation
Last modified by Mora Zhou on 2023/11/21 17:27
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -12 Clock operation instruction1 +12 Clock operation - Parent
-
... ... @@ -1,1 +1,1 @@ 1 -PLC Editor2. 1Usermanual.2\.1 LX5V usermanual.07.WebHome1 +PLC Editor2.07 Basic instructions.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Jim1 +XWiki.Bob - Content
-
... ... @@ -1,3 +1,6 @@ 1 +(% class="wikigeneratedid" %) 2 +== == 3 + 1 1 == **TADD/The addition of clock data** == 2 2 3 3 **TADD(P)** ... ... @@ -202,7 +202,7 @@ 202 202 (% style="text-align:center" %) 203 203 [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]] 204 204 205 -**TRD/Clock data reading** 208 +== **TRD/Clock data reading** == 206 206 207 207 **TRD(P)** 208 208 ... ... @@ -903,1154 +903,66 @@ 903 903 (% style="text-align:center" %) 904 904 [[image:07-5 Basic instructions_html_f512f36261705953.png||height="48" width="218"]] 905 905 906 -= **Data control instructions** = 907 907 908 -== ** BAND/BIN 16-bitdatadeadzone control** ==910 +=== **TON/BIN 16-bit Turn-on delay timer** === 909 909 910 - **BAND(P)**912 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml12440\wps1.png]]**TON(P)** 911 911 912 - Thenput value (BIN16-bitvalue)specified in (s3)controlstheoutputvalue storedin thedevice specified in(d) accordingtotheupperdlower limits ofthe dead zoneand (s2).914 +Specify the T timer device in (s1), the expected time in (s2), and the time base (resolution) in (s3). And the result of the measured individual time interval operation is stored in the device specified in (s1). 913 913 914 - -[BAND(s1)(s2)(S3)(d)]916 +PLC Editor2 version that supports this instruction: 2.3.1 and above. 915 915 916 - **Content,rangeand data type**918 +-[TON (s1) (s2) (s3)] 917 917 918 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 919 -|(s1)|Lower limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S 920 -|(s2)|Upper limit of dead zone (no output zone)|-32,768 to +32,767|Signed BIN 16 bit|ANY16_S 921 -|(S3)|Input value controlled by dead zone control|-32768 to +32,767|Signed BIN 16 bit|ANY16_S 922 -|(D)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 16 bit|ANY16_S 920 +**Content, scope, data type** 923 923 924 -**Device used** 922 +|**parameter**|**Content**|**range**|**type of data**|**Data type (label)** 923 +|(s1)|T device|0~~511|Signed BIN 16 bit|ANY16_S 924 +|(s2)|Expected time|0~~32767|Signed BIN 16 bit|ANY16_S 925 +|(s3)|Time base(resolution)|1/10/100/1000/10000|Signed BIN 16 bit|ANY16_S 925 925 926 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|((( 927 -**Offset modification** 928 -)))|((( 929 -**Pulse extension** 930 -))) 931 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 932 -|(% rowspan="4" %)BAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 933 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 934 -|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 935 -|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 936 - 937 -**Features** 938 - 939 -The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2). The output value is controlled as follows. 940 - 941 -|**Condition**|**The value stored in the output value** 942 -|When dead zone low limit (s1)> input value (s3)|Input value (s3)-Dead zone low limit (s1) 943 -|When dead zone high limit (s1) <input value (s3)|Input value (s3)- Dead zone high limit (s2) 944 -|When dead zone low limit (s1) ≤ input value (s3) ≤ dead zone low limit (s2)|0 945 - 946 -((( 947 -•When the output value stored in (d) is a signed BIN 16-bit value, and the operation result exceeds the range of -32768 to 32767, the situation is shown in the following example. 948 - 949 -For example, when (s1) is 10 and (s3) is -32768, 950 - 951 -the output value = -32768-10=8000H-000AH=7FFFH=32758. 952 - 953 -(% style="text-align:center" %) 954 -[[image:07-5 Basic instructions_html_6850e21a76b813c0.png||height="295" width="550"]] 955 -))) 956 - 957 -**Error code** 958 - 959 -|**Error code**|**Content** 960 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 961 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 962 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 963 - 964 -**Example** 965 - 966 -(% style="text-align:center" %) 967 -[[image:07-5 Basic instructions_html_c0e65cfeed403ecf.png||height="49" width="450"]] 968 - 969 -When X000 is ON, when D0<(-1,000), the value of ( D0)-(-1,000) is stored in (D1). 970 - 971 -• When -1,000≦ D0≦1,000, 0 is stored in D1. 972 - 973 -• When D0<1,000, the value of (D0)-1,000 is stored in D1. 974 - 975 -== **DBAND/BIN 32-bit data dead zone control** == 976 - 977 -**DBAND(P)** 978 - 979 -The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2). 980 - 981 --[DBAND (s1) (s2) (S3) (d)] 982 - 983 -**Content, range and data type** 984 - 985 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 986 -|(s1)|Dead zone low limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 987 -|(s2)|Dead zone high limit (no output zone)|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 988 -|(S3)|Input value controlled by dead zone control|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 989 -|(d)|The start number of the device that stores the output value controlled by the dead zone control|-|Signed BIN 32 bit|ANY32_S 990 - 991 991 **Device used** 992 992 993 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 994 -**Pulse extension** 995 -))) 996 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 997 -|(% rowspan="4" %)DBAND|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 998 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 999 -|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 1000 -|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 929 +|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**parameter**|(% colspan="24" %)**Devices**|**Offset modification**|**Pulse extension** 930 +|**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** 931 +|(% rowspan="3" %)TON|Parameter 1| | | | | | | | | | | | | | |●| | | | | | | | | | | 932 +|Parameter 2| | | | | | | | | | |●|●|●|●| |●|●|●|●| | |●|●| | | 933 +|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 1001 1001 1002 -** Features**935 +**Timing Chart** 1003 1003 1004 -The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limits of the dead zone specified in (s1) and (s2). The output value is controlled as follows. 1005 1005 1006 -|**Condition**|**The value stored in the output value** 1007 -|When dead zone low limit ((s1), (s1)+1)> input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone low limit ((s1), (s1)+1) 1008 -|When dead zone high limit ((s1), (s1)+1) <input value ((s3), (s3)+1)|Input value ((s3), (s3)+1)-dead zone high limit ((s2), (s2)+1) 1009 -|When dead zone low limit ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ dead zone high limit ((s2), (s2)+1)|0 1010 - 1011 -((( 1012 -• When the output value stored in (d) is a signed BIN 32-bit value, and the operation result exceeds the range of -2,147,483,648 to 2,147,483,647, the situation is as the following example. For example,** **When (s1) and (s1)+1 are 1000, (s3) and (s3)+1 are -2,147,483,648, then the output value= 1013 - 1014 --2,147,483,648-1000=80000000H-000003E8H=7FFFFC18H=2,147,482,648. 1015 - 1016 -(% style="text-align:center" %) 1017 -[[image:07-5 Basic instructions_html_e0144674dad3e8fd.png||height="243" width="550"]] 1018 -))) 1019 - 1020 -**Error code** 1021 - 1022 -|**Error code**|**Content** 1023 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1024 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1025 -|4084H|When the low limit specified in (s1) is greater than the high limit specified in (s2). 1026 - 1027 -**Example** 1028 - 1029 -(% style="text-align:center" %) 1030 -[[image:07-5 Basic instructions_html_88f3fe0fb4841bab.png||height="42" width="453"]] 1031 - 1032 -• When (D1, D0)<(-10,000), the value of (D1, D0)-(-10,000) is stored in (D11, D10). 1033 - 1034 -• When -10,000≦(D1, D0)≦10,000, 0 is stored in (D11, D10). 1035 - 1036 -• When 10,000< (D1, D0), the value of (D1, D0)-10,000 is stored in D1. 1037 - 1038 -== **BINDA/BIN 16-bit data → Decimal ASCII conversion** == 1039 - 1040 -**BINDA(P)** 1041 - 1042 -Convert the BIN 16-bit data specified in (s) and the value of each digit in decimal numbers into ASCII codes and store them after the device number specified in (d). 1043 - 1044 --[BINDA(s)(d)] 1045 - 1046 -**Content, range and data type** 1047 - 1048 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1049 -|(s)|BIN data for ASCII conversion|-32768 to +32767|Signed BIN 16 bit|ANY16_S 1050 -|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1051 - 1052 -**Device used** 1053 - 1054 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1055 -**Pulse extension** 1056 -))) 1057 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1058 -|(% rowspan="2" %)BINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1059 -|Parameter 2| | | | | | |●|●|●| | |●|● 1060 - 1061 1061 **Features** 1062 1062 1063 - ConverttheBIN 16-bitdatapecifiedin(s)andthevalueof eachdigitindecimalnumbersintoASCII codes and store themafterthedevicenumberspecifiedin(d).940 +1) When the timer starts timing, the instruction after the timer starts to run when the timing time is greater than the time value of "the product of S2 and S3". 1064 1064 1065 -((( 1066 -(% style="text-align:center" %) 1067 -[[image:07-5 Basic instructions_html_57bda5f08026449d.png]] 942 +2) When the timer value is greater than 0 and less than the time value of "the product of S2 and S3", the timer will stop whenever the contact is disconnected, and when the contact is connected, the timer will start timing again. 1068 1068 1069 -←Only store 0 when SM191 is OFF 1070 -))) 1071 1071 1072 -For example, when -12,345 is specified in (s) (in the case of specifying signed) 945 +|**S3 time base**|**Actual value** 946 +|1|100us 947 +|10|1ms 948 +|100|10ms 949 +|1000|100ms 950 +|10000|1s 1073 1073 1074 -(% style="text-align:center" %) 1075 -[[image:07-5 Basic instructions_html_f346102467b9bef9.png||height="169" width="850"]] 952 +**Precautions** 1076 1076 1077 - The calculation result storedin(d)willbe asbelow.954 +• Avoid timer number conflict: the same timer number cannot be used for TON, TONR, TOF, TP, OUT_T timers at the same time. For example, TON T32 and TOF T32 cannot be used at the same time (it may cause data confusion and not achieve the effect of the corresponding instruction function). 1078 1078 1079 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1080 - 1081 -• In the 0 to the left of the effective digit, 20H is stored. (Suppress 0.) For example, in the case of "00325", "00" becomes 20H, and "325" becomes the effective digit. 1082 - 1083 -• When storing data to the device specified in (d)+3, when SM191 (output character number switching signal) is OFF, 0 is stored, and it does not change when it is ON. 1084 - 1085 -✎**Note: **The number of occupied points of (d) is 3 when SM191 is ON, and it is 4 when SM191 is OFF. 1086 - 1087 1087 **Error code** 1088 1088 1089 1089 |**Error code**|**Content** 1090 -|4085H|The read address of (s) exceeds the device range. 1091 -|4086H|The write address of (d) exceeds the device range. 959 +|4084H|Input data in (s2) (s3) is outside the specified range. 960 +|4085H|Device tpye in (s1) (s2) (s3) is outside the specified range. 961 +|4086H|Device tpye in (s1) is outside the specified range. 1092 1092 1093 -**Example** 963 +**Example**[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml12440\wps9.jpg]] 1094 1094 1095 -(% style="text-align:center" %) 1096 -[[image:07-5 Basic instructions_html_c598806a42484ed.png||height="76" width="300"]] 965 +[[image:file:///C:\Users\ADMINI~~1\AppData\Local\Temp\ksohtml12440\wps9.jpg]] 1097 1097 1098 -((( 1099 -When X000 is ON, convert the value of 16-bit data (BIN) D1000 into decimal ASCII code, and then use PR instruction to output the 967 +T1 is used for storing time, setting the expected time as K10 and the time base as K10000. 1100 1100 1101 - convertedASCIIcodecharacterbycharacter to theprogram ofY040to Y057.969 +After set on (M8) contact and waiting for the value in the turn-on delay timer (T1) to reach the estimated time of 10s, the contact of (T1) on and output Y0. 1102 1102 1103 - 1104 -))) 1105 - 1106 -== **DBINDA/BIN 32-bit data → Decimal ASCII conversion** == 1107 - 1108 -**DBINDA(P)** 1109 - 1110 -Convert the BIN 32-bit data specified in (s) and the value of each bit in decimal numbers into ASCII codes and store them after the device number specified in (d). 1111 - 1112 --[DBINDA(s)(d)] 1113 - 1114 -**Content, range and data type** 1115 - 1116 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1117 -|(s)|BIN data for ASCII conversion|-2,147483648 to 2147483647|Signed BIN 32 bit|ANY32_S 1118 -|(d)|The start number of the device storing the conversion result|-|String|ANYSTRING_SINGLE 1119 - 1120 -**Device used** 1121 - 1122 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|((( 1123 -**Offset modification** 1124 -)))|((( 1125 -**Pulse extension** 1126 -))) 1127 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1128 -|(% rowspan="2" %)DBINDA|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1129 -|Parameter 2| | | | | | |●|●|●| | | | |●|● 1130 - 1131 -**Features** 1132 - 1133 -Convert the BIN 32-bit data specified in (s) and the value of each bit when expressed in decimal numbers into ASCII codes, and store them after the device number specified in (d). 1134 - 1135 -For example, when -12345678 is specified in (s). (in the case of specifying signed) 1136 - 1137 -(% style="text-align:center" %) 1138 -[[image:07-5 Basic instructions_html_4d939462838cf09b.gif]] 1139 - 1140 - The calculation result stored in (d) will be as below. 1141 - 1142 -• In "Sign", 20H is stored when the BIN data is positive, and 2DH is stored when it is negative. 1143 - 1144 -• 20H is stored at 0 to the left of the effective number of digits. (Suppress 0.) For example, in the case of "0012034560", "00" becomes 20H, and "12034560" becomes effective digits. 1145 - 1146 -• For the data stored in the upper 8 bits of the device specified in (d)+5, 0 will be stored when SM191 (output character switching signal) is OFF, and 20H will be stored when it is ON. 1147 - 1148 -✎**Note: **(d) Occupies 6 points. 1149 - 1150 -**Error code** 1151 - 1152 -|**Error code**|**Content** 1153 -|4085H|(s) read address exceeds the device range 1154 -|4086H|(d) write address exceeds the device range 1155 - 1156 -**Example** 1157 - 1158 -(% style="text-align:center" %) 1159 -[[image:07-5 Basic instructions_html_ec8ac32d748a991c.png||height="59" width="300"]] 1160 - 1161 -When X000 is ON, convert the value of 32-bit data (BIN) D1000 into decimal ASCII code, and then use PR (FNC 77) instruction to output the converted ASCII code character by character to the program in Y040 to Y051 in time and time division. 1162 - 1163 -== **DABIN/Decimal ASCII → BIN conversion** == 1164 - 1165 -**DABIN(P)** 1166 - 1167 -Digital ASCII code (30H to 39H) is a instruction to convert real data into BIN data. 1168 - 1169 --[DABIN (s) (d)] 1170 - 1171 -**Content, range and data type** 1172 - 1173 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1174 -|(s)|The start number of the device that stores the data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1175 -|(d)|The device number for storing conversion result|-|BIN16 bit|ANY16_S 1176 - 1177 -**Device used** 1178 - 1179 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="8" %)**Devices**|**Offset modification**|((( 1180 -**Pulse extension** 1181 -))) 1182 -|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP** 1183 -|(% rowspan="2" %)DABIN|Parameter 1| | | | | |●|●|●|●|● 1184 -|Parameter 2|●|●|●|●|●|●|●|●|●|● 1185 - 1186 -**Features** 1187 - 1188 -The decimal ASCII data stored after the device number specified in (s) is converted into BIN 16-bit data and stored in the device specified in (d). 1189 - 1190 -(% style="text-align:center" %) 1191 -[[image:07-5 Basic instructions_html_22c5cb32a0a32214.png||height="273" width="750"]] 1192 - 1193 -|**ASCII S**|**ASCII 10^^0^^**|**ASCII 10^^1^^**|**ASCII 10^^2^^**|**ASCII 10^^3^^**|**ASCII 10^^4^^** 1194 -|**ASCII code**|((( 1195 -Units of 1196 - 1197 -ASCII code 1198 -)))|((( 1199 -Tens of 1200 - 1201 -ASCII code 1202 -)))|((( 1203 -Hundreds of 1204 - 1205 -ASCII code 1206 -)))|((( 1207 -Thousands of 1208 - 1209 -ASCII code 1210 -)))|((( 1211 -Ten thousands 1212 - 1213 -of ASCII code 1214 -))) 1215 - 1216 -For example, When -25,108 is specified in (s) 1217 - 1218 -(% style="text-align:center" %) 1219 -[[image:07-5 Basic instructions_html_10fb2792e37dbf23.png||height="123" width="750"]] 1220 - 1221 -• The ASCII data specified in (s) to (s)+2 is within the range of -32,768 to +32,767. 1222 - 1223 -• In “Sign”, set 20H when the converted data is positive, and set 2DH when it is negative. (When other than 20H or 2DH is set, it will be treated as positive data. (DABIN(P)) 1224 - 1225 -• The range of the ASCII code set in each digit is 30H to 39H. 1226 - 1227 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1228 - 1229 -**Error code** 1230 - 1231 -|**Error code**|**Content** 1232 -|4084H|((( 1233 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H, 2DH; 1234 - 1235 -When the ASCII code of each bit specified in (s) to (s)+2 exceeds the range of 30H to 39H, 20H, 00H; 1236 - 1237 -When the ASCII data specified in (s) to (s)+2 is other than -32,768 to +32,767. 1238 -))) 1239 -|4085H|The read address of (s) exceeds the device range. 1240 -|4086H|The write address of (d) exceeds the device range. 1241 - 1242 -((( 1243 -When X000 is ON, the Signs set in D20 to D22 and the ASCII code data of 5-digit decimal numbers are converted into BIN values, and then stored in the program of D0. 1244 - 1245 -**Example** 1246 -))) 1247 - 1248 -(% style="text-align:center" %) 1249 -[[image:07-5 Basic instructions_html_bec2bea131b58c03.png||height="55" width="300"]] 1250 - 1251 -== **DDABIN/Decimal ASCII → BIN32-bit data conversion** == 1252 - 1253 -**DDABIN(P)** 1254 - 1255 -The decimal ASCII data stored after the device number specified in (s) is converted into BIN 32-bit data and stored in the device number specified in (d). 1256 - 1257 --[DDABIN (s) (d) ] 1258 - 1259 -**Content, range and data type** 1260 - 1261 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1262 -|(s)|The start number of the device that stores data (ASCII code) to be converted into a BIN value|-|String|ANYSTRING_SINGLE 1263 -|(d)|The device number for storing conversion result|-|Signed BIN 32 bit|ANY32_S 1264 - 1265 -**Device used** 1266 - 1267 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="10" %)**Devices**|**Offset modification**|((( 1268 -**Pulse extension** 1269 -))) 1270 -|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**[D]**|**XXP** 1271 -|(% rowspan="2" %)DDABIN|Parameter 1| | | | | |●|●|●| | |●|● 1272 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|● 1273 - 1274 -**Features** 1275 - 1276 -The decimal ASCII data stored after the device number specified in (s) is converted into BIN 32-bit data and stored in the device specified in (d). 1277 - 1278 -(% style="text-align:center" %) 1279 -[[image:07-5 Basic instructions_html_c444110b273f33b7.gif||height="193" width="800"]] 1280 - 1281 -|**ASCII S**|**ASCII code**|**ASCII S**|**ASCII code** 1282 -|ASCII 10^^0^^|Units of ASCII code|ASCII 10^^5^^|Hundred thousands of ASCII code 1283 -|ASCII 10^^1^^|Tens of ASCII code|ASCII 10^^6^^|Millions of ASCII code 1284 -|ASCII 10^^2^^|Hundreds of ASCII code|ASCII 10^^7^^|Ten millions of ASCII code 1285 -|ASCII 10^^3^^|Thousands of ASCII code|ASCII 10^^8^^|Hundred millions of ASCII code 1286 -|ASCII 10^^4^^|Tens thousands of ASCII code|ASCII 10^^9^^|billions of ASCII code 1287 - 1288 -When -1234543210 is specified in (s) (When signed is specified) 1289 - 1290 -(% style="text-align:center" %) 1291 -[[image:07-5 Basic instructions_html_1b4c7e1c663a4399.png||height="230" width="800"]] 1292 - 1293 -• The ASCII data specified in (s) to (s)+5 is within the range of -2,147,483,648 to +2,147,483,647. In addition, the data stored in the high byte of (s)+5 will be ignored. 1294 - 1295 -• In the Sign data, set 20H when the converted data is positive, and set 2DH when it is negative. (When other than 20H or 2DH is set, it will be treated as positive data. (DABIN(P)) 1296 - 1297 -• The range of ASCII code set in each digit is 30H to 39H. 1298 - 1299 -• When the ASCII code set in each bit is 20H or 00H, it will be treated as 30H. 1300 - 1301 -**Error code** 1302 - 1303 -|**Error code**|**Content** 1304 -|4084H|((( 1305 -When the Sign data exceeds the range of 30H to 39H, 20H, 00H and 2DH; 1306 - 1307 -When the ASCII code of each bit specified in (s) to (s)+5 exceeds the range of 30H to 39H, 20H and 00H; 1308 - 1309 -When the ASCII data specified in (s) to (s)+5 exceeds the range of -2,147,483,648 to +2,147,483,647 1310 -))) 1311 -|4085H|The read address of (s) exceeds the device range. 1312 -|4086H|The write address of (d) exceeds the device range. 1313 - 1314 -**Example** 1315 - 1316 -(% style="text-align:center" %) 1317 -[[image:07-5 Basic instructions_html_feea438c943ea9dd.png||height="34" width="300"]] 1318 - 1319 -When X000 is ON, the Signs set in to D20 to D25 and the ASCII code data of 10-digit decimal numbers are converted into BIN values and then saved to the program in D0 to D1. 1320 - 1321 -== **LIMIT/ BIN 16-bit data high and low limit control** == 1322 - 1323 -**LIMIT(P)** 1324 - 1325 -The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the upper and lower limit value ranges specified in (s1) and (s2). 1326 - 1327 --[LIMIT (s1) (s2) (s3) (d)] 1328 - 1329 -**Content, range and data type** 1330 - 1331 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1332 -|s1|Low limit value (minimum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1333 -|s2|High limit value (maximum output limit value)|-32,768 to 32,767|BIN16 bit|ANY16_S 1334 -|s3|Input value controlled by high and low limit control|-32,768 to 32,767|BIN16 bit|ANY16_S 1335 -|d|The start number of device that stores the output value controlled by high and low limit control|-|BIN16 bit|ANY16_S 1336 - 1337 -**Device used** 1338 - 1339 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1340 -**Pulse extension** 1341 -))) 1342 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1343 -|(% rowspan="4" %)LIMIT|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1344 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 1345 -|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 1346 -|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 1347 - 1348 -**Features** 1349 - 1350 -The input value (BIN 16-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the high and low limit value ranges specified in (s1) and (s2). The output value is controlled as follows. 1351 - 1352 -|**Condition**|**The value stored in the output value** 1353 -|Low limit value (s1)>input value (s3)|Low limit value (s1) 1354 -|High limit value (s1) <input value (s3)|High limit value (s2) 1355 -|Low limit value (s1) ≤ input value (s3) ≤ high limit value (s2)|Input value (s3) 1356 - 1357 -((( 1358 -• Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1359 - 1360 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1361 - 1362 -(% style="text-align:center" %) 1363 -[[image:07-5 Basic instructions_html_50eb5229b027aa14.png||height="297" width="550"]] 1364 -))) 1365 - 1366 -**Error code** 1367 - 1368 -|**Error code**|**Content** 1369 -|4085H|The read address exceeds the device range 1370 -|4086H|The write address exceeds the device range 1371 -|4084H|High limit <low limit 1372 - 1373 -**Example** 1374 - 1375 -(% style="text-align:center" %) 1376 -[[image:07-5 Basic instructions_html_d67a2e740d4fc738.png]] 1377 - 1378 -When X000 is ON 1379 - 1380 -• When D0 <500, D1 is 500. 1381 - 1382 -• When 500 ≤ D0 ≤ 5,000, D1 is the value of D0. 1383 - 1384 -• When 5,000 <D0, D1 is 5,000. 1385 - 1386 -== **DLIMIT/BIN 32-bit data high and low limit control** == 1387 - 1388 -**DLIMIT(P)** 1389 - 1390 -The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the range of high and low limit values specified in (s1) and (s2). 1391 - 1392 --[DLIMIT (s1) (s2) (s3) (d)] 1393 - 1394 -**Content, range and data type** 1395 - 1396 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1397 -|s1|Low limit value (minimum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1398 -|s2|High limit value (maximum output limit value)|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1399 -|s3|Input value controlled by high and low limit control|-2,147,483,648 to 2,147,483,647|BIN32 bit|ANY32_S 1400 -|d|The start number of the device that stores the output value controlled by high and low limit control|-|BIN32 bit|ANY32_S 1401 - 1402 -**Device used** 1403 - 1404 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 1405 -**Pulse extension** 1406 -))) 1407 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1408 -|(% rowspan="4" %)DLIMIT|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1409 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1410 -|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 1411 -|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 1412 - 1413 -**Features** 1414 - 1415 -The input value (BIN 32-bit value) specified in (s3) controls the output value stored in the device specified in (d) according to the range of high and low limit values specified in (s1) and (s2). The output value is controlled as follows. 1416 - 1417 -|**Condition**|**The value stored in the output value** 1418 -|Low limit value ((s1), (s1)+1)> input value ((s3), (s3)+1)|Low limit value ((s1), (s1)+1) 1419 -|High limit value ((s2), (s2)+1) <input value ((s3), (s3)+1)|High limit value ((s2), (s2)+1) 1420 -|Low limit value ((s1), (s1)+1) ≤ input value ((s3), (s3)+1) ≤ high limit value ((s2), (s2)+1)|Input value ((s3), (s3)+1) 1421 - 1422 -• Only in the case of controlling high limit value, set the minimum value of data range in the low limit value specified in (s1). 1423 - 1424 -• Only in the case of controlling low limit value, set the maximum value of data range in the high limit value specified in (s2). 1425 - 1426 -**Error code** 1427 - 1428 -|**Error code**|**Content** 1429 -|4085H|The read address exceeds the device range 1430 -|4086H|The write address exceeds the device range 1431 -|4084H|High limit <low limit 1432 - 1433 -**Example** 1434 - 1435 -(% style="text-align:center" %) 1436 -[[image:07-5 Basic instructions_html_217355b90f4b4e16.png||height="53" width="400"]] 1437 - 1438 -Operation: 1439 - 1440 -• When (D1, D0) <10,000, (D11, D10) is 10,000. 1441 - 1442 -• When 10,000 ≤ (D1, D0) ≤ 1,000,000, (D11, D10) is the value of (D1, D0). 1443 - 1444 -• When 1,000,000 <(D1, D0), (D11, D10) is 1,000,000. 1445 - 1446 -== **SCL/BIN 16-bit unit scale (coordinate data of each point)** == 1447 - 1448 -**SCL(P)** 1449 - 1450 -The scaling conversion data (16-bit data unit) specified in (s2) is scaled from the input value specified in (s1), and the calculation result is stored in the device specified in (d). 1451 - 1452 --[SCL (s1) (s2) (d)] 1453 - 1454 -**Content, range and data type** 1455 - 1456 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1457 -|(s1)|The input value for scaling or the start number of device storing the input value|-32,768 to 32,767|Signed BIN 16 bit|ANY16_S 1458 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 1459 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 1460 - 1461 -**Device used** 1462 - 1463 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1464 -**Pulse extension** 1465 -))) 1466 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1467 -|(% rowspan="3" %)SCL|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1468 -|Parameter 2| | | | | | |●|●|●| | |●|● 1469 -|Parameter 3| |●|●|●|●|●|●|●|●| | |●|● 1470 - 1471 -**Features** 1472 - 1473 -For the scale conversion data (16-bit data unit) specified in (s2), scale by the input value specified in (s1), and store the operation result in the device specified in (d). Scale conversion is performed based on the scale conversion data stored after the device specified in (s2). 1474 - 1475 -|(% colspan="2" %)**Setting items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1476 -|(% colspan="2" %)Coordinate points|(s2) 1477 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1 1478 -|Y coordinate|(s2)+2 1479 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3 1480 -|Y coordinate|(s2)+4 1481 -|(% colspan="3" %)........ 1482 -|(% rowspan="2" %)Point n|X coordinate|(s2)+2n-1 1483 -|Y coordinate|(s2)+2n 1484 - 1485 -(% style="text-align:center" %) 1486 -[[image:07-5 Basic instructions_html_80185ccddb878234.png||height="422" width="750"]] 1487 - 1488 -• If the operation result is not an integer value, round the first digit below the decimal point. 1489 - 1490 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1491 - 1492 -• (s1) should be set within the range of conversion data for scaling (device value of (s2)). 1493 - 1494 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 1495 - 1496 -• Set the number of coordinate points of the conversion data for scaling within the range of 1 to 32,767. 1497 - 1498 -• Setting example of conversion table for scaling. 1499 - 1500 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1501 - 1502 -(% style="text-align:center" %) 1503 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png||height="210" width="750"]] 1504 - 1505 -|(% colspan="2" rowspan="2" %)((( 1506 -**Set items** 1507 -)))|(% colspan="3" %)**Sett device and content**|(% rowspan="2" %)**Remarks** 1508 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1509 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 1510 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+1|R1|K5| 1511 -|Y coordinate|(s2)+2|R2|K20| 1512 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+3|R3|K30| 1513 -|Y coordinate|(s2)+4|R4|K50| 1514 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+5|R5|K100| 1515 -|Y coordinate|(s2)+6|R6|K200| 1516 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+7|R7|K25|(% rowspan="6" %)((( 1517 -If the coordinates are specified by 3 points, the intermediate value could be the output value. 1518 - 1519 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 1520 - 1521 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 1522 -))) 1523 -|Y coordinate|(s2)+8|R8|K200 1524 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+9|R9|K70 1525 -|Y coordinate|(s2)+10|R10|K200 1526 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+11|R11|K250 1527 -|Y coordinate|(s2)+12|R12|K250 1528 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+13|R13|K250| 1529 -|Y coordinate|(s2)+14|R14|K90| 1530 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+15|R15|K350|(% rowspan="4" %)((( 1531 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 1532 - 1533 -In this example, the output value is specified by the Y coordinate of point 9. 1534 -))) 1535 -|Y coordinate|(s2)+16|R16|K90 1536 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+17|R17|K350 1537 -|Y coordinate|(s2)+18|R18|K30 1538 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+19|R19|K400| 1539 -|Y coordinate|(s2)+20|R20|K7| 1540 - 1541 -**Error code** 1542 - 1543 -|**Error code**|**Content** 1544 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1545 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1546 -|4084H|((( 1547 -When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs; 1548 - 1549 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 1550 - 1551 -When the number of start coordinate points of device (s2) is less than 0. 1552 -))) 1553 - 1554 -**Example** 1555 - 1556 -(% style="text-align:center" %) 1557 -[[image:07-5 Basic instructions_html_5519d7b41f15b6d6.png]] 1558 - 1559 -[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] When -100 ≤ D0(X) < 0, D100(Y)= 1560 - 1561 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] when D0(X)=0, D100(Y)=0; 1562 - 1563 -when 0< D0(X) ≤ 100, D100(Y)= 1564 - 1565 -(% style="text-align:center" %) 1566 -[[image:07-5 Basic instructions_html_e35e13160c08a133.png||height="362" width="550"]] 1567 - 1568 -== **DSCL/32-bit unit scale (coordinate data of each point)** == 1569 - 1570 -**DSCL(P)** 1571 - 1572 -The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d). 1573 - 1574 --[DSCL (s1) (s2) (d)] 1575 - 1576 -**Content, range and data type** 1577 - 1578 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1579 -|(s1)|The input value for scaling or the start number of the device storing the input value|-2,147,483,648 to 2,147,483,647|Signed BIN 32 bit|ANY32_S 1580 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S 1581 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S 1582 - 1583 -**Device used** 1584 - 1585 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Device**|**Offset modification**|((( 1586 -**Pulse extension** 1587 -))) 1588 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1589 -|(% rowspan="3" %)DSCL|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1590 -|Parameter 2| | | | | | |●|●|●| | | | |●|● 1591 -|Parameter 3| |●|●|●|●|●|●|●|●|●|●| | |●|● 1592 - 1593 -**Features** 1594 - 1595 -The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2). 1596 - 1597 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1598 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 1599 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2 1600 -|Y coordinate|(s2)+5, (s2)+4 1601 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6 1602 -|Y coordinate|(s2)+9, (s2)+8 1603 -|(% colspan="3" %)........ 1604 -|(% rowspan="2" %)Point n|X coordinate|(s2)+4n-1, (s2)+4n-2 1605 -|Y coordinate|(s2)+4n+1, (s2)+4n 1606 - 1607 -(% style="text-align:center" %) 1608 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png||height="379" width="750"]] 1609 - 1610 -• If the calculation result is not an integer value, round the first digit below the decimal point. 1611 - 1612 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1613 - 1614 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 1615 - 1616 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 1617 - 1618 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 1619 - 1620 -• Setting example of conversion table for scaling. 1621 - 1622 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1623 - 1624 -(% style="text-align:center" %) 1625 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png||height="210" width="750"]] 1626 - 1627 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 1628 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1629 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 1630 -|(% rowspan="2" %)Point 1|X coordinate|(s2)+3, (s2)+2|R3, R2|K5| 1631 -|Y coordinate|(s2)+5, (s2)+4|R5, R4|K7| 1632 -|(% rowspan="2" %)Point 2|X coordinate|(s2)+7, (s2)+6|R7, R6|K20| 1633 -|Y coordinate|(s2)+9, (s2)+8|R9, R8|K30| 1634 -|(% rowspan="2" %)Point 3|X coordinate|(s2)+11, (s2)+10|R10, R11|K50| 1635 -|Y coordinate|(s2)+13, (s2)+12|R13, R12|K100| 1636 -|(% rowspan="2" %)Point 4|X coordinate|(s2)+15, (s2)+14|R15, R14|K200|(% rowspan="6" %)((( 1637 -if the coordinates are specified by 3 points, the intermediate value could be the output value. 1638 - 1639 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 1640 - 1641 -When the X coordinate is the same at 3 points or more, the value of the 2nd point is also output. 1642 -))) 1643 -|Y coordinate|(s2)+17, (s2)+16|R17, R16|K25 1644 -|(% rowspan="2" %)Point 5|X coordinate|(s2)+19, (s2)+18|R19, R18|K200 1645 -|Y coordinate|(s2)+21, (s2)+20|R21, R20|K70 1646 -|(% rowspan="2" %)Point 6|X coordinate|(s2)+23, (s2)+22|R23, R22|K200 1647 -|Y coordinate|(s2)+25, (s2)+24|R25, R24|K250 1648 -|(% rowspan="2" %)Point 7|X coordinate|(s2)+27, (s2)+26|R27, R26|K250| 1649 -|Y coordinate|(s2)+29, (s2)+28|R29, R28|K90| 1650 -|(% rowspan="2" %)Point 8|X coordinate|(s2)+31, (s2)+30|R31, R30|K350|(% rowspan="4" %)((( 1651 -If the coordinates are specified by two points, the output value is the value of the Y coordinate of the next point. 1652 - 1653 -In this example, the output value is specified by the Y coordinate of point 9. 1654 -))) 1655 -|Y coordinate|(s2)+33, (s2)+32|R33, R32|K90 1656 -|(% rowspan="2" %)Point 9|X coordinate|(s2)+35, (s2)+34|R35, R34|K350 1657 -|Y coordinate|(s2)+37, (s2)+36|R37, R36|K30 1658 -|(% rowspan="2" %)Point 10|X coordinate|(s2)+39, (s2)+38|R39, R38|K400| 1659 -|Y coordinate|(s2)+41, (s2)+40|R41, R40|K7| 1660 - 1661 -**Error code** 1662 - 1663 -|**Error code**|**Content** 1664 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1665 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1666 -|4084H|((( 1667 -When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs; 1668 - 1669 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 1670 - 1671 -When the number of start coordinate points of device (s2) is less than 0. 1672 -))) 1673 - 1674 -**Example** 1675 - 1676 -(% style="text-align:center" %) 1677 -[[image:07-5 Basic instructions_html_ba95b2d50d8d1d3e.png||height="272" width="404"]] 1678 - 1679 -[[image:07-5 Basic instructions_html_1de79c7d87d51f78.gif]] When -100 ≤ D0(X) < 0, D100(Y)= 1680 - 1681 -[[image:07-5 Basic instructions_html_9acd6306c6d91847.gif]] When D0(X)=0, D100(Y)=0; 1682 - 1683 -When 0 < D0(X) ≤ 100, D100(Y)= 1684 - 1685 -(% style="text-align:center" %) 1686 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png||height="351" width="550"]] 1687 - 1688 -== **SCL2/BIN 16-bit unit scale (X/Y coordinate data)** == 1689 - 1690 -**SCL2(P)** 1691 - 1692 -The conversion data (16-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d). 1693 - 1694 --[SCL2 (s1) (s2) (d)] 1695 - 1696 -**Content, range and data type** 1697 - 1698 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1699 -|(s1)|The input value for scaling or the start number of the device storing the input value|-32,768 to 32,767|Signed BIN 16 bit|ANY16_S 1700 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 16 bit|ANY16_S 1701 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 16 bit|ANY16_S 1702 - 1703 -**Device used** 1704 - 1705 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1706 -**Pulse extension** 1707 -))) 1708 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1709 -|(% rowspan="3" %)SCL2|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1710 -|Parameter 2| | | | | | |●|●|●| | |●|● 1711 -|Parameter 3| |●|●|●|●|●|●|●|●| | |●|● 1712 - 1713 -**Features** 1714 - 1715 -The conversion data (16-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2). 1716 - 1717 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1718 -|(% colspan="2" %)Coordinate points|(s2) 1719 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+1 1720 -|Point 2|(s2)+2 1721 -|.....|...... 1722 -|Point N|(s2)+N 1723 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+N+1 1724 -|Point 2|(s2)+N+2 1725 -|.....|..... 1726 -|Point N|(s2)+2N 1727 - 1728 -(% style="text-align:center" %) 1729 -[[image:07-5 Basic instructions_html_80185ccddb878234.png||height="422" width="750"]] 1730 - 1731 -• If the operation result is not an integer value, round the first digit below the decimal point. 1732 - 1733 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1734 - 1735 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 1736 - 1737 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 1738 - 1739 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 32,767. 1740 - 1741 -• Setting example of conversion table for scaling. 1742 - 1743 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1744 - 1745 -(% style="text-align:center" %) 1746 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png||height="210" width="750"]] 1747 - 1748 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 1749 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1750 -|(% colspan="2" %)Coordinate points|(s2)|R0|K10| 1751 -|(% rowspan="10" %)X coordinate|Point 1|(s2)+1|R1|K5| 1752 -|Point 2|(s2)+2|R2|K20| 1753 -|Point 3|(s2)+3|R3|K50| 1754 -|Point 4|(s2)+4|R4|K200|(% rowspan="3" %)Refer to** ✎1** 1755 -|Point 5|(s2)+5|R5|K200 1756 -|Point 6|(s2)+6|R6|K200 1757 -|Point 7|(s2)+7|R7|K250| 1758 -|Point 8|(s2)+8|R8|K350|(% rowspan="2" %)Refer to** ✎2** 1759 -|Point 9|(s2)+9|R9|K350 1760 -|Point 10|(s2)+10|R10|K400| 1761 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+11|R11|K7| 1762 -|Point 2|(s2)+12|R12|K30| 1763 -|Point 3|(s2)+13|R13|K100| 1764 -|Point 4|(s2)+14|R14|K25|(% rowspan="3" %)Refer to**✎1** 1765 -|Point 5|(s2)+15|R15|K70 1766 -|Point 6|(s2)+16|R16|K250 1767 -|Point 7|(s2)+17|R17|K90| 1768 -|Point 8|(s2)+18|R18|K90|(% rowspan="2" %)Refer to** ✎2** 1769 -|Point 9|(s2)+19|R19|K30 1770 -|Point 10|(s2)+20|R20|K7| 1771 - 1772 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 1773 - 1774 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 1775 - 1776 -When the X coordinate is the same at 3 or more points, the value of the second point is also output. 1777 - 1778 -✎**2** Like points 8 and 9, if the coordinates are specified by 2 points, the output value is the value of the Y coordinate of next point. 1779 - 1780 -In this example, the output value is specified by the Y coordinate of point 9. 1781 - 1782 -**Error code** 1783 - 1784 -|**Error code**|**Content** 1785 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1786 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1787 -|4084H|((( 1788 -When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs; 1789 - 1790 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 1791 - 1792 -When the number of start coordinate points of device (s2) is less than 0. 1793 -))) 1794 - 1795 -**Example** 1796 - 1797 -(% style="text-align:center" %) 1798 -[[image:07-5 Basic instructions_html_de529c9a16a62ef0.png||height="316" width="400"]] 1799 - 1800 -When -100 ≤D0 (X) < 0, D100(Y)=[[image:07-5 Basic instructions_html_ace075fb7675de8e.gif]] 1801 - 1802 -When D0(X)=0, D100(Y)=0; 1803 - 1804 -When 0 < D0(X) ≤ 100, D100(Y)=[[image:/xwiki/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07-5%20Basic%20instruction/WebHome/07-5%20Basic%20instructions_html_47ebf5cc7733fccc.gif?rev=1.1||alt="07-5 Basic instructions_html_47ebf5cc7733fccc.gif"]][[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07/12/WebHome/07-5%20Basic%20instructions_html_47ebf5cc7733fccc.gif?rev=1.1||alt="07-5 Basic instructions_html_47ebf5cc7733fccc.gif"]],,[[image:07-5 Basic instructions_html_47ebf5cc7733fccc.gif]],, 1805 - 1806 -(% style="text-align:center" %) 1807 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png||height="351" width="550"]] 1808 - 1809 -== **DSCL2/BIN 32-bit unit scale (X/Y coordinate data)** == 1810 - 1811 -**DSCL2(P)** 1812 - 1813 -The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device specified in (d). 1814 - 1815 --[DSCL2 (s1) (s2) (d)] 1816 - 1817 -**Content, range and data type** 1818 - 1819 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1820 -|(s1)|The input value for scaling or the start number of the device storing the input value|-2,147,483,648 to +2,147,483,647|Signed BIN 32 bit|ANY32_S 1821 -|(s2)|The start number of the device storing conversion data for scaling|-|Signed BIN 32 bit|ANY32_S 1822 -|(d)|The start number of the device that stores the output value controlled by scaling|-|Signed BIN 32 bit|ANY32_S 1823 - 1824 -**Device used** 1825 - 1826 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 1827 -**Pulse extension** 1828 -))) 1829 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 1830 -|(% rowspan="3" %)DSCL2|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 1831 -|Parameter 2| | | | | | |●|●|●| | | | |●|● 1832 -|Parameter 3| |●|●|●|●|●|●|●|●|●|●| | |●|● 1833 - 1834 -**Features** 1835 - 1836 -The conversion data (32-bit data unit) for scaling specified in (s2) is scaled by the input value specified in (s1), and the operation result is stored in the device number specified in (d). The scale conversion is performed based on the scale conversion data stored after the device specified in (s2). 1837 - 1838 -|(% colspan="2" %)**Set items (n represents the number of coordinate points specified in (s2))**|**Device allocation** 1839 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2) 1840 -|(% rowspan="4" %)X coordinate|Point 1|(s2)+3, (s2)+2 1841 -|Point 2|(s2)+5, (s2)+4 1842 -|.....|...... 1843 -|Point N|(s2)+2N+1, (s2)+2N 1844 -|(% rowspan="4" %)Y coordinate|Point 1|(s2)+2N+3, (s2)+2N+2 1845 -|Point 2|(s2)+2N+5, (s2)+2N+4 1846 -|.....|..... 1847 -|Point N|(s2)+4N+1, (s2)+4N 1848 - 1849 -(% style="text-align:center" %) 1850 -[[image:07-5 Basic instructions_html_6633ca18cee1218c.png||height="379" width="750"]] 1851 - 1852 -• If the operation result is not an integer value, round the first digit below the decimal point. 1853 - 1854 -• The X coordinate data of the conversion data for scaling should be set in ascending order. 1855 - 1856 -• For (s1), set within the range of the conversion data for scaling ((s2), (s2) + 1 device value). 1857 - 1858 -• If the same X coordinate is specified for multiple points, the Y coordinate value of the second point will be output. 1859 - 1860 -• Set the number of coordinate points of conversion data for scaling within the range of 1 to 2,147,483,647. 1861 - 1862 -• Setting example of conversion table for scaling. 1863 - 1864 -In the case of scaling conversion characteristics as shown in the figure below, set it as the following data sheet. 1865 - 1866 -(% style="text-align:center" %) 1867 -[[image:07-5 Basic instructions_html_74fd22d845ad450e.png||height="210" width="750"]] 1868 - 1869 -|(% colspan="2" rowspan="2" %)**Set items**|(% colspan="3" %)**Set device and content**|(% rowspan="2" %)**Remarks** 1870 -|(% colspan="2" %)**When R0 is specified in (s2)**|**Set content** 1871 -|(% colspan="2" %)Coordinate points|(s2)+1, (s2)|R1, R0|K10| 1872 -|(% rowspan="10" %)X|Point 1|(s2)+3, (s2)+2|R3, R2|K5| 1873 -|Point 2|(s2)+5, (s2)+4|R5, R4|K20| 1874 -|Point 3|(s2)+7, (s2)+6|R7, R6|K50| 1875 -|Point 4|(s2)+9, (s2)+8|R9, R8|K200|(% rowspan="3" %)Refer to** ✎1** 1876 -|Point 5|(s2)+11, (s2)+10|R10, R11|K200 1877 -|Point 6|(s2)+13, (s2)+12|R13, R12|K200 1878 -|Point 7|(s2)+15, (s2)+14|R15, R14|K250| 1879 -|Point 8|(s2)+17, (s2)+16|R17, R16|K350|(% rowspan="2" %)Refer to** ✎2** 1880 -|Point 9|(s2)+19, (s2)+18|R19, R18|K350 1881 -|Point 10|(s2)+21, (s2)+20|R21, R20|K400| 1882 -|(% rowspan="10" %)Y coordinate|Point 1|(s2)+23, (s2)+22|R23, R22|K7| 1883 -|Point 2|(s2)+25, (s2)+24|R25, R24|K30| 1884 -|Point 3|(s2)+27, (s2)+26|R27, R26|K100| 1885 -|Point 4|(s2)+29, (s2)+28|R29, R28|K25|(% rowspan="3" %)Refer to** ✎1** 1886 -|Point 5|(s2)+31, (s2)+30|R31, R30|K70 1887 -|Point 6|(s2)+33, (s2)+32|R33, R32|K250 1888 -|Point 7|(s2)+35, (s2)+34|R35, R34|K90| 1889 -|Point 8|(s2)+37, (s2)+36|R37, R36|K90|(% rowspan="2" %)Refer to** ✎2** 1890 -|Point 9|(s2)+39, (s2)+38|R39, R38|K30 1891 -|Point 10|(s2)+41, (s2)+40|R41, R40|K7| 1892 - 1893 -✎**1** Like points 4, 5, and 6, if the coordinates are specified by 3 points, the intermediate value could be the output value. 1894 - 1895 -In this example, the output value (median value) is specified by the Y coordinate of point 5. 1896 - 1897 -When the X coordinate is the same at 3 or more points, the value of the second point is also output. 1898 - 1899 -✎**2** Like points 8 and 9, if the coordinates are specified by 2 points, the output value is the value of the Y coordinate of the next point. 1900 - 1901 -In this example, the output value is specified by the Y coordinate of point 9. 1902 - 1903 -**Error code** 1904 - 1905 -|**Error code**|**Content** 1906 -|4085H|When the specified device range for reading exceeds the range of the corresponding device. 1907 -|4086H|When the specified device range for writing exceeds the range of the corresponding device. 1908 -|4084H|((( 1909 -When the Xn data of data table is not sorted in ascending order. However, the instruction will be executed until the position where the error occurs; 1910 - 1911 -When the input value specified in (s1) exceeds the range of the set scale conversion data; 1912 - 1913 -When the number of start coordinate points of device (s2) is less than 0. 1914 -))) 1915 - 1916 -**Example** 1917 - 1918 -(% style="text-align:center" %) 1919 -[[image:07-5 Basic instructions_html_91dbc16faa9d2ec3.png]] 1920 - 1921 -When -100 ≤D0(X) < 0, D100(Y)=[[image:/xwiki/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07-5%20Basic%20instruction/WebHome/07-5%20Basic%20instructions_html_2c96d630f666e72c.gif?rev=1.1||alt="07-5 Basic instructions_html_2c96d630f666e72c.gif"]][[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07/12/WebHome/07-5%20Basic%20instructions_html_2c96d630f666e72c.gif?rev=1.1||alt="07-5 Basic instructions_html_2c96d630f666e72c.gif"]],,[[image:07-5 Basic instructions_html_2c96d630f666e72c.gif]] ,,; 1922 - 1923 -when D0(X)=0, D100(Y)=0; 1924 - 1925 -when 0< D0(X) ≤ 100, D100(Y)=[[image:/xwiki/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07-5%20Basic%20instruction/WebHome/07-5%20Basic%20instructions_html_47ebf5cc7733fccc.gif?rev=1.1||alt="07-5 Basic instructions_html_47ebf5cc7733fccc.gif"]][[image:/bin/download/PLC%20Editor2/1%20User%20manual/2.1%20LX5V%20user%20manual/07/12/WebHome/07-5%20Basic%20instructions_html_47ebf5cc7733fccc.gif?rev=1.1||alt="07-5 Basic instructions_html_47ebf5cc7733fccc.gif"]],,[[image:07-5 Basic instructions_html_47ebf5cc7733fccc.gif]] ,,. 1926 - 1927 -(% style="text-align:center" %) 1928 -[[image:07-5 Basic instructions_html_a5b19d1af74a9620.png||height="351" width="550"]] 1929 - 1930 -== **ZONE/BIN 16-bit data zone control** == 1931 - 1932 -**ZONE(P)** 1933 - 1934 -After adding the offset value specified in (s1) or (s2) to the input value specified in (s3), it is stored in the device number specified in (d). 1935 - 1936 --[ZONE (s1) (s2) (s3) (d)] 1937 - 1938 -**Content, range and data type** 1939 - 1940 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 1941 -|s1|The negative offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 1942 -|s2|The positive offset value for addition in the input value|-32,768 to 32,767|BIN16 bit|ANY16_S 1943 -|s3|Input value for zone control`|-32,768 to 32,767|BIN16 bit|ANY16_S 1944 -|d|The start number of the device storing the output value controlled by zone control|-|BIN16 bit|ANY16_S 1945 - 1946 -**Device used** 1947 - 1948 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="11" %)**Devices**|**Offset modification**|((( 1949 -**Pulse extension** 1950 -))) 1951 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**K**|**H**|**[D]**|**XXP** 1952 -|(% rowspan="4" %)ZONE|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|● 1953 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|● 1954 -|Parameter 3|●|●|●|●|●|●|●|●|●| | |●|● 1955 -|Parameter 4| |●|●|●|●|●|●|●|●| | |●|● 1956 - 1957 -**Features** 1958 - 1959 -After adding the offset value specified in (s1) or (s2) to the input value (BIN 16-bit value) specified in (s3), it is stored in the device number specified in (d). The offset value is controlled as follows. 1960 - 1961 -|**Condition**|**The value stored in the output value** 1962 -|When input value (s3)<0|Input value (s3) + negative offset value (s1) 1963 -|When input value (s3)=0|0 1964 -|When input value (s3)>0|Input value (s3) + positive offset value (s2) 1965 - 1966 -((( 1967 -• When the output value stored in (d) is a signed BIN 16-bit value, and the operation result exceeds the range of -32,768 to 32,767, the situation is shown in the following example. 1968 - 1969 -For example, when (s1) is -100 and (s3) is -32,768, 1970 - 1971 -the output value = -32768+(-100)=8000H-FF9CH=7F9CH=32668. 1972 - 1973 -(% style="text-align:center" %) 1974 -[[image:07-5 Basic instructions_html_a2adbf9ccf8f839.png||height="399" width="550"]] 1975 -))) 1976 - 1977 -**Error code** 1978 - 1979 -|**Error code**|**Content** 1980 -|4085H|When the specified device range for reading exceeds the range of the corresponding device 1981 -|4086H|When the specified device range for writing exceeds the range of the corresponding device 1982 - 1983 -**Example** 1984 - 1985 -(% style="text-align:center" %) 1986 -[[image:07-5 Basic instructions_html_5da523c7765bf5be.png]] 1987 - 1988 -When X000 is ON 1989 - 1990 -• When D0<0, the value of (D0)+(-1,000) is stored in D1. 1991 - 1992 -• When D0=0, 0 is stored in D1. 1993 - 1994 -• When 0<D0, the value of (D0)+(1,000) is stored in D1. 1995 - 1996 -== **DZONE/BIN 32-bit data zone control** == 1997 - 1998 -DZONE(P) 1999 - 2000 -After adding the offset value specified in (s1) or (s2) to the input value specified in (s3), it is stored in the device number specified in (d). 2001 - 2002 --[DZONE (s1) (s2) (s3) (d)] 2003 - 2004 -**Content, range and data type** 2005 - 2006 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 2007 -|(s1)|The negative offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2008 -|(s2)|The positive offset value for addition in the input value|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2009 -|(s3)|Input value for zone control|-2147483648 to 2147483647|BIN32 bit|ANY32_S 2010 -|(d)|The start number of the device storing the output value controlled by zone control|-|BIN32 bit|ANY32_S 2011 - 2012 -**Device used** 2013 - 2014 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="13" %)**Devices**|**Offset modification**|((( 2015 -**Pulse extension** 2016 -))) 2017 -|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**[D]**|**XXP** 2018 -|(% rowspan="4" %)DZONE|Parameter 1|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 2019 -|Parameter 2|●|●|●|●|●|●|●|●|●|●|●|●|●|●|● 2020 -|Parameter 3|●|●|●|●|●|●|●|●|●|●|●| | |●|● 2021 -|Parameter 4| |●|●|●|●|●|●|●|●|●|●| | |●|● 2022 - 2023 -**Features** 2024 - 2025 -After adding the offset value specified in (s1) or (s2) to the input value (BIN 32-bit value) specified in (s3), it is stored in the device number specified in (d). The offset value is controlled as follows. 2026 - 2027 -|**Condition**|**The value stored in the output value** 2028 -|When input value ((s3), (s3)+1)<0|Input value ((s3), (s3)+1) + negative offset value (s1), (s1)+1 2029 -|When input value ((s3), (s3)+1)=0|0 2030 -|When input value ((s3), (s3)+1)>0|Input value ((s3), (s3)+1) + positive offset value (s2), (s2)+1 2031 - 2032 -((( 2033 -• When the output value stored in (d) and (d)+1 is a signed BIN 32-bit value, and the operation result exceeds the range of -2,147,483,648 to 2,147,483,647, the situation is shown in the following example. 2034 - 2035 -For example, (s1), (s1)+1 is -1,000, (s3), (s3)+1 is -2,147,483,648, then the output value=-2,147,483,648+(-1000)=80000000H+FFFFFC18H=2,147,482,648. 2036 - 2037 -(% style="text-align:center" %) 2038 -[[image:07-5 Basic instructions_html_2f3a96a2565c75c7.png]] 2039 -))) 2040 - 2041 -**Error code** 2042 - 2043 -|**Error code**|**Content** 2044 -|4085H|When the specified device range for reading exceeds the range of the corresponding device 2045 -|4086H|When the specified device range for writing exceeds the range of the corresponding device 2046 - 2047 -**Example** 2048 - 2049 -(% style="text-align:center" %) 2050 -[[image:07-5 Basic instructions_html_b831b14748df07ab.png||height="51" width="401"]] 2051 - 2052 -• When (D1, D0)<0, the value of (D1, D0)+(-10,000) is stored in (D11, D10). 2053 - 2054 -• When (D1, D0)=0, 0 is stored in (D11, D10). 2055 - 2056 -• When 0<(D1, D0), the value of (D1, D0)+10,000 is stored in (D11, D10). 971 +If the (M8) contact is off in the process of turn-on delay timer (T1) timing, the turn-on delay timer (T1) value is cleared to 0 and the timing ends.