;**********************************************************************
;	
;	NAME: 		InstCode.ini
;	FUNCTION:	指令集数组中的索引
;	VERSION:	1.0
;	
;***********************************************************************

[InstCode]

;基本指令
LD    = 1
LDI   = 2
OR    =	3
ORI   =	4
AND   = 5
ANI   = 6
ANB   = 7
ORB   = 8
OUT   = 9
LDP   = 10
LDF   = 11
ANDP  = 12
ANDF  = 13
ORP   = 14
ORF   = 15
INV   = 16
MEP   = 17
MEF   = 18
SET   = 19
RST   = 20
PLS   = 21
PLF   = 22
MPS   = 23
MRD   = 24
MPP   = 25
MC    = 26
MCR   = 27
STL   = 28
RET   = 29
NOP   = 30
END   = 31
P     = 32
I     = 33

;程序流程指令FNC0~9
CJ    = 34
CJP   = 35
CALL    =	36
CALLP   =	37
SRET   = 38
IRET   = 39
EI   = 40
DI   = 41
FEND   = 42
WDT   = 43
WDTP   = 44
FOR  = 45
NEXT  = 46

;四则逻辑运算指令FNC20~29
ADD    = 47
ADDP   = 48
DADD    =	49
DADDP   =	50
SUB   = 51
SUBP   = 52
DSUB   = 53
DSUBP   = 54
MUL   = 55
MULP   = 56
DMUL   = 57
DMULP  = 58
DIV  = 59
DIVP    = 60
DDIV   = 61
DDIVP    =	62
INC   =	63
INCP   = 64
DINC   = 65
DINCP   = 66
DEC   = 67
DECP   = 68
DDEC   = 69
DDECP   = 70
WAND  = 71
WANDP  = 72
DAND    = 73
DANDP   = 74
WOR    =	75
WORP   =	76
DOR   = 77
DORP   = 78
WXOR   = 79
WXORP   = 80
DXOR   = 81
DXORP   = 82
NEG   = 83
NEGP  = 84
DNEG  = 85
DNEGP  = 86

;浮点数运算指令FNC110~139
DECMP    = 87
DECMPP   = 88
DEZCP    =	89
DEZCPP   =	90
DEMOV   = 91
DEMOVP   = 92
DEBCD   = 93
DEBCDP   = 94
DEBIN   = 95
DEBINP   = 96
DEADD   = 97
DEADDP  = 98
DESUB  = 99
DESUBP    = 100
DEMUL   = 101
DEMULP    =	102
DEDIV   =	103
DEDIVP   = 104
DEXP   = 105
DEXPP   = 106
DLOGE   = 107
DLOGEP   = 108
DLOG10   = 109
DLOG10P   = 110
DESQR  = 111
DESQRP  = 112
DENEG    = 113
DENEGP   = 114
INT    =	115
INTP   =	116
DINT   = 117
DINTP   = 118
DSIN   = 119
DSINP   = 120
DCOS   = 121
DCOSP   = 122
DTAN   = 123
DTANP  = 124
DASIN  = 125
DASINP  = 126
DACOS   = 127
DACOSP   = 128
DATAN   = 129
DATANP   = 130
DRAD   = 131
DRADP  = 132
DDEG  = 133
DDEGP  = 134

;触点比较指令FNC220~249
LD=    = 135
LDD=   = 136
LD>    =	137
LDD>   =	138
LD<   = 139
LDD<   = 140
LD<>   = 141
LDD<>   = 142
LD<=   = 143
LDD<=   = 144
LD>=   = 145
LDD>=  = 146
AND=  = 147
ANDD=    = 148
AND>   = 149
ANDD>    =	150
AND<   =	151
ANDD<   = 152
AND<>   = 153
ANDD<>   = 154
AND<=   = 155
ANDD<=   = 156
AND>=   = 157
ANDD>=   = 158
OR=  = 159
ORD=  = 160
OR>    = 161
ORD>   = 162
OR<    =	163
ORD<   =	164
OR<>   = 165
ORD<>   = 166
OR<=   = 167
ORD<=   = 168
OR>=   = 169
ORD>=   = 170

;传送比较指令FNC10~19
CMP    = 171
CMPP   = 172
DCMP    =	173
DCMPP   =	174
ZCP   = 175
ZCPP   = 176
DZCP   = 177
DZCPP   = 178
MOV   = 179
MOVP   = 180
DMOV   = 181
DMOVP  = 182
SMOV  = 183
SMOVP    = 184
CML   = 185
CMLP    =	186
DCML   =	187
DCMLP   = 188
BMOV   = 189
BMOVP   = 190
FMOV   = 191
FMOVP   = 192
DFMOV   = 193
DFMOVP   = 194
XCH  = 195
XCHP  = 196
DXCH    = 197
DXCHP   = 198
BCD    =	199
BCDP   =	200
DBCD   = 201
DBCDP   = 202
BIN   = 203
BINP   = 204
DBIN   = 205
DBINP   = 206

;循环移位指令FNC30~39
ROR    = 207
RORP   = 208
DROR    =	209
DRORP   =	210
ROL   = 211
ROLP   = 212
DROL   = 213
DROLP   = 214
RCR   = 215
RCRP   = 216
DRCR   = 217
DRCRP  = 218
RCL  = 219
RCLP    = 220
DRCL   = 221
DRCLP    =	222
SFTR   =	223
SFTRP   = 224
SFTL   = 225
SFTLP   = 226
WSFR   = 227
WSFRP   = 228
WSFL   = 229
WSFLP   = 230
SFWR  = 231
SFWRP  = 232
SFRD    = 233
SFRDP   = 234

;数据处理指令FNC40~49
ZRST    = 235
ZRSTP   = 236
DECO    =	237
DECOP   =	238
ENCO   = 239
ENCOP   = 240
SUM   = 241
SUMP   = 242
DSUM   = 243
DSUMP   = 244
BON   = 245
BONP  = 246
DBON  = 247
DBONP    = 248
MEAN   = 249
MEANP    =	250
DMEAN   =	251
DMEANP   = 252
ANS   = 253
ANR   = 254
ANRP   = 255
SQR   = 256
SQRP   = 257
DSQR   = 258
DSQRP  = 259
FLT  = 260
FLTP    = 261
DFLT   = 262
DFLTP   = 263

;高速处理指令FNC50~59
REF    = 264
REFP   = 265
REFF    =	266
REFFP   =	267
MTR   = 268
DHSCS   = 269
DHSCR   = 270
DHSZ   = 271
SPD   = 272
DSPD   = 273
PLSY   = 274
DPLSY  = 275
PWM  = 276
PLSR    = 277
DPLSR   = 278

;方便指令FNC60~69
IST    = 279
SER   = 280
SERP    =	281
DSER   =	282
DSERP   = 283
ABSD   = 284
DABSD   = 285
INCD   = 286
TTMR   = 287
STMR   = 288
ALT   = 289
ALTP  = 290
RAMP  = 291
ROTC    = 292
SORT   = 293

;外部设备I/O指令FNC70~79
TKY    = 294
DTKY   = 295
HKY    =	296
DHKY   =	297
DSW   = 298
SEGD   = 299
SEGDP   = 300
SEGL   = 301
ARWS   = 302
ASC   = 303
PR   = 304
FROM  = 305
FROMP  = 306
DFROM    = 307
DFROMP   = 308
TO  = 309
TOP  = 310
DTO    = 311
DTOP   = 312

;外部设备SER指令FNC80~89
RS    = 313
PRUN   = 314
PRUNP    =	315
DPRUN   =	316
DPRUNP   = 317
ASCI   = 318
ASCIP   = 319
HEX   = 320
HEXP   = 321
CCD   = 322
CCDP   = 323
VRRD  = 324
VRRDP  = 325
VRSC    = 326
VRSCP   = 327
RS2  = 328
PID  = 329

;数据传送2指令FNC100~109
ZPUSH    = 330
ZPUSHP   = 331
ZPOP    =	332
ZPOPP   =	333

;数据处理2指令FNC140~149
WSUM    = 334
WSUMP   = 335
DWSUM    =	336
DWSUMP   =	337
WTOB   = 338
WTOBP   = 339
BTOW   = 340
BTOWP   = 341
UNI   = 342
UNIP   = 343
DIS   = 344
DISP  = 345
SWAP  = 346
SWAPP    = 347
DSWAP   = 348
DSWAPP  = 349
SORT2  = 350
DSORT2  = 351

;定位控制指令FNC150~159
DSZR    = 352
DVIT   = 353
DDVIT    =	354
DTBL   =	355
DABS   = 356
ZRN   = 357
DZRN   = 358
PLSV   = 359
DPLSV   = 360
PLSN = 512
DRVI   = 361
DDRVI   = 362
DRVA  = 363
DDRVA  = 364

;时钟运算指令FNC160~169
TCMP    = 365
TCMPP   = 366
TZCP    =	367
TZCPP   =	368
TADD   = 369
TADDP   = 370
TSUB   = 371
TSUBP   = 372
HTOS   = 373
HTOSP   = 374
DHTOS   = 375
DHTOSP  = 376
STOH  = 377
STOHP   = 378
DSTOH   = 379
DSTOHP   = 380
TRD   = 381
TRDP   = 382
TWR   = 383
TWRP   = 384
HOUR  = 385
DHOUR  = 386

;外部设备指令FNC170~179
GRY    = 387
GRYP   = 388
DGRY    =	389
DGRYP   =	390
GBIN   = 391
GBINP   = 392
DGBIN   = 393
DGBINP   = 394
RD3A   = 395
RD3AP   = 396
WR3A   = 397
WR3AP  = 398

;其它指令FNC180~189
EXTR    = 399
;EXTRP   = 400
COMRD    =	401
COMRDP   =	402
RND   = 403
RNDP   = 404
DUTY   = 405
CRC   = 406
CRCP   = 407
DHCMOV   = 408

;数据块处理指令FNC190~199
BK+    = 409
BK+P   = 410
DBK+    =	411
DBK+P   =	412
BK-   = 413
BK-P   = 414
DBK-   = 415
DBK-P   = 416
BKCMP=   = 417
BKCMP=P   = 418
DBKCMP=   = 419
DBKCMP=P  = 420
BKCMP>  = 421
BKCMP>P    = 422
DBKCMP>   = 423
DBKCMP>P    =	424
BKCMP<   =	425
BKCMP<P   = 426
DBKCMP<   = 427
DBKCMP<P   = 428
BKCMP<>   = 429
BKCMP<>P   = 430
DBKCMP<>   = 431
DBKCMP<>P   = 432
BKCMP<=  = 433
BKCMP<=P  = 434
DBKCMP<=    = 435
DBKCMP<=P   = 436
BKCMP>=    =	437
BKCMP>=P   =	438
DBKCMP>=   = 439
DBKCMP>=P   = 440

;数据处理3指令FNC210~219
FDEL    = 441
FDELP   = 442
FINS    =	443
FINSP   =	444
POP   = 445
POPP   = 446
SFR   = 447
SFRP   = 448
SFL   = 449
SFLP   = 450

;数据表处理指令FNC250~269
LIMIT    = 451
LIMITP   = 452
DLIMIT    =	453
DLIMITP   =	454
BAND   = 455
BANDP   = 456
DBAND   = 457
DBANDP   = 458
ZONE   = 459
ZONEP   = 460
DZONE    = 461
DZONEP   = 462
SCL    =	463
SCLP   =	464
DSCL   = 465
DSCLP   = 466
DABIN   = 467
DABINP   = 468
DDABIN   = 469
DDABINP   = 470
BINDA    =	471
BINDAP   =	472
DBINDA   = 473
DBINDAP   = 474
SCL2   = 475
SCL2P   = 476
DSCL2   = 477
DSCL2P   = 478

;变频器通信指令FNC270~274
IVCK    = 479
IVDR   = 480
IVRD    =	481
IVWR   =	482
IVBWR   = 483

;数据传送3指令FNC275~279
ADPRW    = 484
RBFM   = 485
WBFM    =	486

;高速处理2指令FNC280~289
DHSCT    = 487

;字符串控制指令FNC200~209
STR    = 488
STRP   = 489
DSTR    =	490
DSTRP   =	491
VAL   = 492
VALP   = 493
DVAL   = 494
DVALP   = 495
$+   = 496
$+P   = 497
LEN    = 498
LENP   = 499
RIGHT    =	500
RIGHTP   =	501
LEFT    = 502
LEFTP   = 503
MIDR    =	504
MIDRP   =	505
MIDW   = 506
MIDWP   = 507
INSTR   = 508
INSTRP   = 509
$MOV   = 510
$MOVP   = 511

