Posted in

By

5 of 6Updated 2026-11-1727 min read中文版

1-16 Name comparison between Ladder and ST editing environment instructions

ST function name

Parameter

Instruction manual corresponding information

Remark

Number

Name

ToBCD

ToBCD_D

S,D

Fun20

BCD

ToBIN

ToBIN_D

S,D

Fun21

BIN

F_TRIG

S,D

Fun4

DIFU

R_TRIG

S,D

Fun5

DIFD

Timer

EN,T,PV,IsTimeout

T

TIMER

Counter

Counter_L

Pulse,clr,C,PV,IsUp

C

COUNTER

ABS

ABS_D

D

Fun28

ABS

CRC16

S,N,D

Fun31

CRC16

DIV

Sa,Sb,D

Fun14

DIVISION

FtoI

FtoI_D

S,D

Fun201

F->I

FACOS_deg

S,D

Fun219

FACOS

FACOS_rad

S,D

Fun219

FACOS

FASIN_deg

S,D

Fun218

FASIN

FASIN_rad

S,D

Fun218

FASIN

FCOS

S,D

Fun210

FCOS

FDIV

Sa,Sb,D

Fun205

FDIV

FMUL

Sa,Sb,D

Fun204

FMUL

FSIN

S,D

Fun209

FSIN

FSQR

S,D

Fun208

FSQR

FTAN

S,D

Fun211

FTAN

FZCP

S,Su,S1,INZ,ERR
S_Gt_U, S_Less_L

Fun207

FZCP

ItoF

ItoF_D

S,D

Fun200

I->F

LCNV

LCNV_D

EN,Md,S,Ts,D,L

Fun33

LCNV

MEAN

MEAN_D

S,N,D

Fun25

MEAN

MLC

EN,XY,Rs,Sl,Tx,Ty,Tl,D,OVR

Fun34

MLC

MUL

Sa,Sb,D

Fun13

MULTIPLICATION

SUM

SUM_D

S,N,D

Fun24

SUM

BITRD

BITRD_D

S,N,OTB,ERR

Fun40

BITRD

BITWR

BITWR_D

INB,D,N,ERR

Fun41

BITWR

DBUF

EN,ID,CH,D,DN

Fun115

DBUF

ReadSDMem

EN,INC,Bk,Os,Pr,L,D,ERR

Fun162

RD-MP

ReadWriteFileReg ReadWriteFileReg_D

EN,R_W,INC,Sa,Sb,Pr,L

Fun160

RW-FR

SWAP

D

Fun46

SWAP

WriteSDMem

EN,INC,S,Bk,Os,Pr,L,WR,ACT,ERR,DN

Fun161

WR-MP

ToASCII

S,N,D

Fun64

->ASCII

ToBCD

ToBCD_D

S,D

Fun20

->BCD

ToBIN

ToBIN_D

S,D

Fun21

->BIN

ToHEX

S,N,D

Fun63

->HEX

ToHMS

S,D

Fun62

->HMS

ToSEC

S,D

Fun61

->SEC

BintoGray BintoGray_D

S,D

Fun55

B->G

DECOD

S,Ns,Nl,D,D,ERR

Fun57

DECOD

ENCOD

H_L,S,Ns,Nl,D,D_0,ERR

Fun58

ENCOD

GraytoBin GraytoBin_D

S,D

Fun56

G->B

PID

PID_D

AM,BUM,D_R,Ts, SR,O_R,PR,WR,CCERR,HAL,LAL

Fun30

PID

PID2

EN,UPD,AM,D_R, ID,CH,SR,OutR,PR,WR,ERR

Fun38

PID2

TPCTL2

EN,UPD,A_M,D_R, ID,CH,SR,PR,OriR,

WR,ERR,ALM

Fun99

TPCTL2

IMDIO

D,N

Fun74

IMDIO

SPD

EN,S,TI,D,OVF

Fun83

SPD

ACTimer_10MS ACTimer_10MS_D

TIM,EN,CV,PV,TUP,NUP

Fun87

T.01S

ACTimer_100MS ACTimer_100MS_D

TIM,EN,CV,PV,TUP,NUP

Fun88

T.1S

ACTimer_1S ACTimer_1S_D

TIM,EN,CV,PV,TUP,NUP

Fun89

T1S

RSWDT

Fun91

RSWDTF

WDT

N

Fun90

WDT

HSCTR

CN

Fun92

HSCTR

HSCTW

S,CN,D

Fun93

HSCTW

RAMP2

EN,Om,Ta,Td,Rt,Rc,WR,ACC,DEC

Fun98

RAMP2

CLINK

EN,PAU,ABT,Pt,MD,WR,ERR,DN

Fun151

CLINK

CMCTL

EN,PAU,ID,Pt,Ts, MD,WR,ERR

Fun156

CMCTL

ModBUS

EN,A_R,ABT,PT,SRWR,ACT,ERR,DN,

Fun150

M-Bus

NCR

NE,SR,MD,WR,ACT,ERR,DN

Fun152

NCR

BKCMP

BKCMP_D

Rs,Ts,L,D

Fun112

BKCMP

BT_M

BT_M_D

Ts,Td,L

Fun103

BT_M

QUEUE

QUEUE_D

InOut,IW,Qu,L,Pr,OW,EPT,FUL

Fun110

QUEUE

T_Search

T_Search_D

FHD,DS,Rs,Ts,L,Pr,FND,END,ERR

Fun105

R-T_S

SORT

SORT_D

AD,S,D,L

Fun113

SORT

STACK

STACK_D

InOut,IW,ST,L,Pr, OW,EPT,FUL

Fun111

STACK

T_Compare T_Compare_D

FHD,DS,Ta,Tb,L,Pr,FND,END,ERR

Fun106

T-T_C

T_Fill

T_Fill_D

Rs,Td,L

Fun107

T_FIL

ZoneWR

Val,D,N

Fun114

Z-WR

MAND

Ma,Mb,Md,L

Fun120

MAND

MBCNT

OnOff,Ms,L,D

Fun130

MBCNT

MBRD

EN,INC,CLR,Ms,L, Pr,OTB,END,ERR

Fun126

MBRD

MBROT

L_R,Ms,Md,L,OTB

Fun129

MBROT

MBSHF

INB,L_R,Ms,Md,L,OTB

Fun128

MBSHF

MINV

Ms,Md,L

Fun124

MINV

MOR

Ma,Mb,Md,L

Fun121

MOR

MXNR

Ma,Mb,Md,L

Fun123

MXNR

MXOR

Ma,Mb,Md,L

Fun122

MXOR

HSPSO

EN,PAU,ABT,Ps,SR,WR,ACT,ERR,DN

Fun140

HSPSO

HSPWM

EN,Pw,Op,Rs,Pn, OutR,WR,ACT

Fun139

HSPWM

HSPWM2

EN,Pw,Op,Hz,O_R, ACT,ERR

Fun144

HSPWM2

ICA

EN,D_R,Ps,Is,Fo,Ag,ACT,ERR,DN

Fun137

ICA

ICF

EN,D_R,Ps,Is,Fo,Fd,ACT,ERR,DN

Fun138

ICF

MHSPO

EN,PAU,ABT,Gp,SR,WR,ACT,ERR,DN

Fun147

MHSPO

MPARA

EN,Ps,SR

Fun141

MPARA

MPG

EN,Sc,Ps,Fo,Mr,WR,ACT

Fun148

MPG

PSCNV

EN,Ps,D

Fun143

PSCNV

PSOFF

EN,Ps

Fun142

PSOFF

INTDisable

LB

Fun146

DIS

INTEnable

LB

Fun145

EN

TARESUB

EN,RST,ID,CH,SB,

ERR

Fun258

MODCONF

TAREZEOFFSET

EN,MD,ID,CH,WR,ERR

Fun258

MOD

MFSysCAMR

EN,Md,D,ID,L,ACT,ERR,DN

Fun191

MFSysCAMR

MFSysCAMW

EN,Md,D,ID,L,ACT,ERR,DN

Fun192

MFSysCAMW

MFSysInit

EN,ACT,ERR,DN

Fun187

MFSysInit

MFSysRCPR

EN,Md,D,Gp,ACT,ERR,DN

Fun188

MFSysRCPR

MFSysRCPW

EN,MD,D,GP,ACT, ERR,DN

Fun189

MFSysRCPW

MFSysRstAlm

EN,ACT,ERR,DN

Fun185

MFSysRstAlm

MFSysSetVirt

EN,AX,ACT,ERR,DN

Fun235

MFSysSetVirt

MFSysStop

EN,ACT,ERR,DN

Fun177

MFSysStop

MFChgTbPrm

EN,GP,ID,N,D,ERR,DN

Fun181

MFChgTbPrm

MFFlowHalt

EN,ID,ACT,ERR,DN

Fun184

MFFlowHalt

MFFlowPause

EN,ID,ACT,ERR,DN

Fun182

MFFlowPause

MFFlowStart

EN,ID,ACT,ERR,DN

Fun176

MFFlowStart

MFFlowStop

EN,ID,ACT,ERR,DN

Fun186

MFFlowStop

MFMapTbPrm

EN,GP,ID,N,D,ERR,DN

Fun198

MFMapTbPrm

MFHome

EN,AX,ACT,ERR, DN

Fun178

MFHome

MFJog

EN,D_R, AX, MD,ACT,ERR ,DN

Fun180

MFJog

MFPointMov

EN,PT,AX,ACT,ERR,DN

Fun179

MFPointMov

MFAxCirMov

EN,UPD,TAX,MD, DR,BF,D,EC,ACT,ERR,DN,UPD

Fun239

MFAxCirMov

MFAxLMov

EN,UPD,TAX,MD, DR,BF,D,EC,ACT, ERR,DN,UPD

Fun238

MFAxLMov

MFAxMov

MFAxMov_D

EN,UPD_in,AX,MD,Ps,V_n,A,D,SA,SD,DR,BF,ACT,ERR,DN,UPD_out

Fun197

MFAxMov

MFGearMPG MFGearMPG_D

EN,UPD_in,M,S,N,D,T,ACT,ERR,DN,UPD_out

Fun193

MFGearMPG

MFPathMov

EN,ACT,UPD,AX1,AX2,AX3,PT,V,TA,TD,SA,SD,EC,ACT,ERR,DN,UPD

Fun240

MFPathMov

MFTorqCtl MFTorqCtl_D

EN,UPD_in,AX,T,MX,ACT,ERR,DN, UPD_out

Fun195

MFTorqCtl

MFVelCtl MFVelCtl_D

EN,UPD_in,AX,T,MX,ACT,ERR,DN, UPD_out

Fun194

MFVelCtl

1-17 Functions with multiple calling modes

ST function name

Parameter

Parameter description

ToBCD

ToBCD_D

S,D

S: The data being converted or its register number.

D: The register number that stores the conversion result (BCD code)

ToBIN

ToBIN_D

S,D

S: The data being converted or its register number.

D: The scratchpad number where the conversion result (BIN code) is stored.

F_TRIG

S,D

S: The data being converted or its register number.

D: The relay coil number where the derivative result is stored

R_TRIG

S,D

S: The data being converted or its register number.

D: The relay coil number where the derivative result is stored

Timer

EN,T,PV,IsTimeout

Tn: The timer number, which is the stored accumulated timekeeping time (i.e. the current value CV). /b14> PV :(Preset Value) is the set value of the timer.

Counter

Counter_L

Pulse,clr,C,PV,IsUp

CN: The counter number, which is the accumulated count value (i.e. the current value CV).

PV:(Preset Value) is the setting of the counter.

ABS

ABS_D

D

D: Take the register number of the absolute value

CRC16

S,N,D

MD:0, when calculating CRC, only the low group of the scratchpad is calculated, and the bytes of the scratchpad are not counted

:1, reserved S: The starting register number of the CRC needs to be calculated

N: The data length of the CRC needs to be calculated, and the unit is bytes

D: The register number that stores the CRC calculation result, and the register D stores the Upper Byte register D of the CRC calculation result +1 Lower Byte S,N,D of the stored CRC resultThe operator can be combined with V, Z, P0~P9 indicators for indirect addressing applications

DIV

Sa,Sb,D

Sa: The dividend number or its scratchpad number.

SB: The divisor or its register number.

D: The( register number where the result (quotient and remainder) is stored.

Sa,Sb,D can be combined with V,Z,P0~P9 for indirect addressing applications.

FtoI

FtoI_D

S,D

S: The starting number of the source register

D: The register used by the register start number operator to store the result (integer) must be an even address, e.g. R8 is valid, R7 is not. /b110> The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing with

FACOS_deg

S,D

S: Find the source value or the register number of the arcsine function value. /b11> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not. /b17> D : The ) number of the register that holds the result (arcsine value).

S and D can be combined with V, Z, P0~P9 for indirect addressing applications.

FACOS_rad

S,D

FASIN_deg

S,D

S: Find the source value or the register number of the arcsine function value. /b11> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not. /b17> D : The ) number of the register that holds the result (arcsine value). /b113> S and D can be combined with V, Z, P0~P9 for indirect addressing applications.

FASIN_rad

S,D

FCOS

S,D

S: Find the source value or register number of the COS value.

D : The number of the scratchpad where the result is stored. /b12> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FDIV

Sa,Sb,D

Sa: The dividend number or its scratchpad number.

SB: The divisor or its register number.

D: The register start number of the result (quotient) The register used by the operator must be an even address, e.g. R8 is legitimate, R7 /b110>It’s not legal.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FMUL

Sa,Sb,D

Sa: The multiplier or its scratchpad number.

SB: Multiplier or its scratchpad number.

D: The register start number of the result (product) The register used by the operator must be an even address, e.g. R8 is legitimate, R7 /b110>It’s not legal.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FSIN

S,D

S: The source value or scratchpad number for which the SIN value is found.

D : The number of the register where the result is stored. /b11> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FSQR

S,D

S: Find the source value or scratchpad number of the square root.

D : The register number that holds the result (square root value) /b15> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FTAN

S,D

S: The source value or scratchpad number of the TAN value. /b13> D : The number of the register where the result is stored. /b15> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

FZCP

S,Su,S1,INZ,ERR
S_Gt_U, S_Less_L

S : ) The number of the register that holds the comparison data (floating-point number).

SU: The upper limit value of the area or the upper limit value of the register number.

SL: The lower limit value of the zone or the number of the lower limit value scratchpad. /b11> The register used by the operator must be an even address, e.g. R8 is valid and R7 is not.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

ItoF

ItoF_D

S,D

S : The starting number of the source register

D: The register start number of the result (floating-point) The register used by the operator must be an even address, e.g. R8 is valid, R7 /b110>It’s not legal.

The S and D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

LCNV

LCNV_D

EN,Md,S,Ts,D,L

Md: operation mode selection, 0~3 S: the start number of the source register to be converted TS: the start number of the start register of the conversion table

D: The starting register number where the conversion result is stored

L: The length to be converted, 1~64

MEAN

MEAN_D

S,N,D

S: The starting number of the source register

N: The number of registers to be averaged (N consecutive registers starting from S).

D: The register number where the result (average) is stored

S,N,D can be combined with V,Z,P0~P9 for indirect addressing applications

MLC

EN,XY,Rs,Sl,Tx,Ty,Tl,D,OVR

Rs: Source data start register number

Sl: The length of the source data to be converted, 1~64

Tx:X converts the table start register start number

Ty:Y converts the start number of the table start register

Tl: Conversion table length, 2~255

D: The starting register number where the conversion result is stored

MUL

Sa,Sb,D

Sa: The multiplier or its scratchpad number.

SB: Multiplier or its scratchpad number.

D: The register number where the result (product) is stored. Sa, Sb, D can be combined with V, Z, P0~P9 for indirect addressing.

SUM

SUM_D

S,N,D

S: The starting number of the source register

N: The number of registers to be summed (N consecutive registers starting from S).

D: The register number where the result (sum) is stored

S,N,D can be combined with V,Z,P0~P9 for indirect addressing applications

BITRD

BITRD_D

S,N,OTB,ERR

S : The data of the bit to be read or its register number

N: Specifies that the Nth digit of data in the S data is read out

S,N can be combined with V, Z, P0~P9 for indirect addressing applications

BITWR

BITWR_D

INB,D,N,ERR

D: The register number of the bit to be written

N: Specifies that the state of the write bit INB is written to the Nth bit D in D, and N can be combined V, Z, P0~P9 for indirect addressing applications

DBUF

EN,ID,CH,D,DN

ID: Extension module ID number (0~N).

CH : Extended Module Channel Index ( 0 ~ N)

D : The start register that holds the cache data

ReadSDMem

EN,INC,Bk,Os,Pr,L,D,ERR

BK: SD card block number, 0~1

OS: the starting location of the partitioned data

PR: Indicator scratchpad number

L: Read data length 1~128

D: The start number of the register that stores the read data

ReadWriteFileReg ReadWriteFileReg_D

EN,R_W,INC,Sa,Sb,Pr,L

SA: The starting register number of the scratchpad list

SB: The starting number of the file register

PR: Indicator scratchpad number

L: The length of the list is 1~511

Sa can be combined with V, Z, P0~P9 for indirect addressing applications

SWAP

D

D: The register number that performs byte data swapping

D can be combined with V, Z, P0~P9 for indirect addressing applications

WriteSDMem

EN,INC,S,Bk,Os,Pr,L,WR,ACT,ERR,DN

S: The number of the source from which the data is written

BK: the block number of the SD card, 0~1 OS: the starting position of the partition data

Pr: Indicator register number L: Write data length 1~128

WR: The starting number of the working register, which occupies a total of 2 registers

S can be combined with V, Z, P0~P9 for indirect addressing applications

ToASCII

S,N,D

S : The starting number of the source register

N: The number of ASCII codes to be converted into hexadecimal values

D: The start number of the register where the result (ASCII code) is stored

S,N,D can be combined with V,Z,P0~P9 for indirect addressing applications

ToBCD

ToBCD_D

S,D

S: The data being converted or its register number.

D: The register number that stores the conversion result (BCD code)

S, D can be combined with V, Z, P0~P9 for indirect addressing applications.

ToBIN

ToBIN_D

S,D

S: The data being converted or its register number.

D: The scratchpad number where the conversion result (BIN code) is stored.

S,D can be combined with V,Z,P0~P9 for indirect addressing applications

ToHEX

S,N,D

S : The starting number of the source register

N: The number of hexadecimal values to be converted to ASCII codes

D: The start number of the scratchpad where the result (hexadecimal value) is stored

S,N,D can be combined with V,Z,P0~P9 for indirect addressing applications

ToHMS

S,D

S: The number of seconds to be converted, the starting number of the data register

D: The first number of the register stored in the transformation result (hours:minutes:seconds).

ToSEC

S,D

S: The starting number of the time data register to be changed D: The starting number of the register where the result is stored

BintoGray BintoGray_D

S,D

S : The starting number of the source register

D: The start number of the scratchpad where the result (Gray code) is stored

The S,D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

DECOD

S,Ns,Nl,D,D,ERR

S: The decoded source data register number (16 bits).

NS: The start bit to be decoded in S NL: The length of the decoded value (1~8 bits) D : The starting number of the register (2~256 points=1~16 words) where the decoding result is stored

S, NS, NL, D can be combined with V, Z, P0~P9 for indirect addressing

ENCOD

H_L,S,Ns,Nl,D,D_0,ERR

S : The first digit of the encoded register

NS: Specify one of the points in S as the starting point of the encoding NL: the number of single points of the encoding (2~256 points) D : The register number (1 word) S,NS,NL that holds the encoding result, D can be combined with V, Z, P0~P9 for interconnected addressing applications

GraytoBin GraytoBin_D

S,D

S : The starting number of the source register

D: The start number of the scratchpad where the result (Gray code) is stored

The S,D operators can be combined with V, Z, P0~P9 indicators for indirect addressing applications

PID

PID_D

AM,BUM,D_R,Ts, SR,O_R,PR,WR,CCERR,HAL,LAL

Ts: The interval between PID operations

SR : Programmable setpoint start register number, occupies a total of 8 registers

OR: PID output register number

PR: Parameter setting start register number, 7 registers occupied WR: The starting number of the working register required for this instruction occupies a total of 5 scratchpads, It cannot be reused elsewhere.

PID2

EN,UPD,AM,D_R, ID,CH,SR,OutR,PR,WR,ERR

ID: The number of the extension module used as the input signal

CH : The channel number used as the input signal

SR : Programmable setpoint start register number, occupies a total of 8 registers

OR: PID output register number

PR: Parameter setpoint start register number, 7 registers occupied in total WR: The working instantial memory start number required for this instruction occupies a total of 5 scratchpads, and cannot be reused elsewhere.

TPCTL2

EN,UPD,A_M,D_R, ID,CH,SR,PR,OriR,

WR,ERR,ALM

ID: The number of the extension module used as the input signal

CH: The channel number used as the input signal

SR : Programmable start register

PR : Gain setting start register

OR: Output start register

WR: Working Start Register

IMDIO

D,N

D: The I /O number to be updated

N: The number of I/O points to be updated

SPD

EN,S,TI,D,OVF

S : To detect the pulse of velocity input point

TI: Detection sampling time (in mS).

D: The register number where the result is stored

ACTimer_10MS ACTimer_10MS_D

TIM,EN,CV,PV,TUP,NUP

CV: The number of the register that holds the timed time (i.e. the current value).

PV: A timer setting or a register number range operator that stores the set value

WX WY WM WS TMR CTR HR IR OR SR ROR DR

ACTimer_100MS ACTimer_100MS_D

TIM,EN,CV,PV,TUP,NUP

ACTimer_1S ACTimer_1S_D

TIM,EN,CV,PV,TUP,NUP

RSWDT

There are no operators in this command

WDT

N

N: The set time of the monitoring timer. /b11> Its value can only be 50, 60, 70… … 120, the unit is 10mS, that is, the set time range is (50~ 120)×10mS, that is, 0.5 seconds ~ 1.2 seconds

HSCTR

CN

CN: Hardware high-speed counter number 0: HSC0 1: HSC1 2: HSC2 3: HSC3 4:HSC4 5:HSC5 6:HSC6 7:HSC7

HSCTW

S,CN,D

CN: Hardware high-speed counter number 0: HSC0 1: HSC1 2: HSC2 3: HSC3 4:HST4 2:HSC2 3:HSC3 4:HST4

D: Write object (0: for CV, 1: for PV)

RAMP2

EN,Om,Ta,Td,Rt,Rc,WR,ACC,DEC

OM: Maximum output setting; Set the range 0~65535

TA: Rise time from 0 to maximum output; The setting range is 0~65000, and the unit is MS

TD: The fall time from the maximum output to 0 is set; The setting range is 0~65000, and the unit is MS

RT: Target output setting scratchpad; Set the range 0~65535

RC: The current output register, which is used as a D/A output

WR: The starting address of the working register, which occupies a total of 4 registers

CLINK

EN,PAU,ABT,Pt,MD,WR,ERR,DN

Pt: Specify the port, 1, 2

MD: Communication mode selection (MD0~MD3).

SR : Holds the start register of the communication program

WR: The instruction operates the start register, which occupies a total of 8 registers, and other programs cannot be reused.

CMCTL

EN,PAU,ID,Pt,Ts, MD,WR,ERR

ID: The number of the module used

Pt: Specifies COMA/COMB (A= 0; B=1)

TS: Communication Form Blocking Bit 1: Form 0, Bit 2: Form 1 ~ Bit 15: Form 15

Bit 16~Bit 31: Reserved, not usable

MD: Setup Mode 0: RUN ONCE 1: RUN CYCLING 2: STOP

WR: Store working status Bit0~Bit1: Table 0 state Bit2~Bit3: Table 1 state ~ Bit30~Bit31: Table 15 state

(= 0:RUN_ONCE = 1:RUN_CYCLING = 2:STOP )

ModBUS

EN,A_R,ABT,PT,SRWR,ACT,ERR,DN,

PT: 1, 2, through this port,, the MODBUS RTU communication protocol is used for data transmission

SR: Communicator start register (see example).

WR: The instruction operation start register (see example), which occupies a total of 8 registers, and cannot be reused by other programs

NCR

NE,SR,MD,WR,ACT,ERR,DN

SR: Table start register address.

MD: Modbus TCP active communication (=1).

WR: Working Register.

BKCMP

BKCMP_D

Rs,Ts,L,D

RS : the data being compared or its register number

TS : The starting number of the upper and lower limit register blocks

L: The number of groups of upper and lower limits

D: The starting number of the relay where the comparison result is stored

BT_M

BT_M_D

Ts,Td,L

TS: The register number at the beginning of the source list

TD: The register number at the beginning of the list of destinations

L: The length of the list of sources and destinations

TS, TD can be combined with V, Z, P0~P9 for indirect addressing applications

QUEUE

QUEUE_D

InOut,IW,Qu,L,Pr,OW,EPT,FUL

IW: The information or its register number that is squeezed into the list

QU: The number of the starting register of the store

L: The length of the storage column

PR: Indicator scratchpad number

OW: The number of the register that receives the data removed from the memory

QU can be combined with V, Z, P0~P9 for indirect addressing applications

T_Search

T_Search_D

FHD,DS,Rs,Ts,L,Pr,FND,END,ERR

Rs: The source (sample) information sought or its scratchpad number

TS: The register number at the beginning of the searched list

L: the length of the list

PR: Indicator, which is used to record the value of the location of the target

Rs,Ts can be combined with V, Z, P0~P9 for indirect addressing applications

SORT

SORT_D

AD,S,D,L

S : The register number at the beginning of the source data to be sorted

D: The registered number at the beginning of the sorted data

L: The length of the sorted data

STACK

STACK_D

InOut,IW,ST,L,Pr, OW,EPT,FUL

IW: Stuffed data or its scratchpad number

ST: The register number at the beginning of the stack

L: The length of the stack

PR: Indicator scratchpad number

OW: The register number that receives the stack outgoing data

ST can be combined with V, Z, P0~P9 for indirect addressing applications

T_Compare T_Compare_D

FHD,DS,Ta,Tb,L,Pr,FND,END,ERR

TA: The starting number of the register of List A

TB: The starting number of the register in List B

L: The length of lists a and b

PR: Indicator, which is used to record the value of the location of the target

Ta,Tb can be combined with V, Z, P0~P9 for indirect addressing applications

T_Fill

T_Fill_D

Rs,Td,L

RS: The source information or its register number to be included in the list

TD: The register number at the beginning of the list

L : The length of the list

RS, TD can be combined with V, Z, P0~P9 for indirect addressing applications

ZoneWR

Val,D,N

D: The starting address of the region to be written or cleared

N: The length of the area to be written or cleared: 1~511

D, N can be combined with V, Z, P0~P9 for indirect addressing applications

MAND

Ma,Mb,Md,L

MA: The starting register number of Source Matrix A

MB: The register number at the beginning of Source Matrix B

MD: The number of the scratchpad at the beginning of the matrix for which the results are stored

L: The length of the matrix (Ma, Mb, and Md).

Ma, Mb, Md can be combined with V, Z, P0~P9 for indirect addressing applications

MBCNT

OnOff,Ms,L,D

MS: The register number at the beginning of the matrix

L : The length of the matrix

D : The register number where the quantity result is stored

MS can be combined with V, Z, P0~P9 for indirect addressing applications

MBRD

EN,INC,CLR,Ms,L, Pr,OTB,END,ERR

Ms: The scratchpad number at the beginning of the matrix

L : The length of the matrix

PR: Indicator register number

Ms can be combined with V, Z, P0~P9 for indirect addressing applications

MBROT

L_R,Ms,Md,L,OTB

Ms : The register number at the beginning of the source matrix

MD: The register number at the beginning of the destination matrix

L: Matrix (Ms and Md) length

MS, Md can be combined with V, Z, P0~P9 for indirect addressing applications

MBSHF

INB,L_R,Ms,Md,L,OTB

Ms : The register number at the beginning of the source matrix

MD: The register number at the beginning of the destination matrix

L: Matrix (Ms and Md) length

Ms, Md can be combined with V, Z, P0~P9 for indirect addressing applications

MINV

Ms,Md,L

Ms : The register number at the beginning of the source matrix

MD: The number of the scratchpad at the beginning of the matrix for which the result is stored

L: The length of the matrix (Ms and Md).

Ms,Md can be combined with V, Z, P0~P9 for indirect addressing applications

MOR

Ma,Mb,Md,L

MA: The starting register number of Source Matrix A

MB: The register number at the beginning of Source Matrix B

MD: The number of the scratchpad at the beginning of the matrix for which the results are stored

L: The length of the matrix (Ma, Mb, and Md).

Ma, Mb, Md can be combined with V, Z, P0~P9 for indirect Addressing applications

MXNR

Ma,Mb,Md,L

MA: The scratchpad number at the beginning of Source Matrix A

MB: The register number at the beginning of Source Matrix B

MD: The number of the scratchpad at the beginning of the matrix for which the result is stored

L : the length of the matrix (Ma, Mb, Md).

Ma, Mb, Md can be combined with V, Z, P0~P9 for indirect Addressing applications

MXOR

Ma,Mb,Md,L

MA: The scratchpad number at the beginning of Source Matrix A

MB: The register number at the beginning of Source Matrix B

MD: The number of the scratchpad at the beginning of the matrix for which the result is stored

L : the length of the matrix (Ma, Mb, Md).

Ma, Mb, Md can be combined with V, Z, P0~P9 for indirect Addressing applications

HSPSO

EN,PAU,ABT,Ps,SR,WR,ACT,ERR,DN

Ps : The first set of Pulse outputs (0~7).

0:Y0 & Y1 1:Y2 & Y3 2:Y4 & Y5 3:Y6 & Y7 4:Y8 & Y9 5:Y10 & Y11 6:Y12 & Y13 7:Y14 & Y15

SR: Locator program start register

WR: The instruction operates the start register, which occupies a total of 7 registers, and other programs cannot be reused

HSPWM

EN,Pw,Op,Rs,Pn, OutR,WR,ACT

PW : High-speed pulse-width modulation output point

(0=Y0, 1=Y2, 2=Y4, 3=Y6, 4=Y8, 5=Y10, 6=Y12, 7=Y14)

Op : Output polarity; 0=Output non-inverted 1=Output inverted

Rs : Resolution; 0=1/100 (1%) 1=1/1000 (0.1%)

Pn : Output frequency parameter setting (0~255).

OR : PWM output width setting register 0~100 or 0~1000

WR : Instruction operation work register, other programs cannot be reused

HSPWM2

EN,Pw,Op,Hz,O_R, ACT,ERR

PW: Pulse width modulation output point (0=Y0, 1=Y2, 2=Y4, 3=Y6, 4=Y8, 5=Y10, 6=Y12, 7=Y14)

Op: Output polarity (0=positive phase, 1=inverted phase)

Hz: Output frequency (1~100000000 or 1~200000000, unit 0.001Hz) OR: Pulse output width (0~100, unit %)

ICA

EN,D_R,Ps,Is,Fo,Ag,ACT,ERR,DN

Ps: Which group of Pulse output (0~7) 0: Y0 & Y1 1: Y2 & Y3 2: Y4 & Y5 3: Y6 & Y7 4: Y8 & Y9 5: Y10 & Y11 6: Y12 & Y13 7: Y14 & Y15

Ls: External input X point index number (0~15)

Fo: Target working speed (1~100000 or 1~200000)

Ag: Fixed angle during interruption (0~36000)

ICF

EN,D_R,Ps,Is,Fo,Fd,ACT,ERR,DN

Ps: Which group of Pulse output (0~7) 0: Y0 & Y1 1: Y2 & Y3 2: Y4 & Y5 3: Y6 & Y7 4: Y8 & Y9 5: Y10 & Y11 6: Y12 & Y13 7: Y14 & Y15

Ls: External input X point index number (0~15)

Fo: Target working speed (1~100000 or 1~200000)

Fd: pulse movement amount output after interrupting capture

MHSPO

EN,PAU,ABT,Gp,SR,WR,ACT,ERR,DN

Gp: which group (0~1)

SR: Positioning program start register

WR: Instruction operation starting register, occupying 9 registers in total, cannot be reused by other programs

MPARA

EN,Ps,SR

Ps: Which group of Pulse Output (0~3)

SR: Parameter table starting register, a total of 18 parameters, occupying 24 temporary registers

MPG

EN,Sc,Ps,Fo,Mr,WR,ACT

Sc: Specify the source of the rocker to take over the high-speed counter; 0~7

Ps: Specify the pulse wave output axis of the reaction hand wheel; 0~3

Fo: Output frequency setting register (2 registers)

Mr: Ratio setting register (2 registers)

Mr+0: Multiplicand (Fa)

Mr+1: Multiplier dividend (Fb)

WR: Starting address of working register, occupying 4 registers in total. Output pulse number = (hand wheel input pulse number × Fa)/Fb * PLC OS V4.60 (inclusive) and later supports this command

PSCNV

EN,Ps,D

Ps: 0~3; Convert the pulse wave position (PS) of the group into mm (Deg, Inch, PS) with the same unit as the set value to display the current position.

D: The register that stores the current position after conversion. A total of two registers are needed; for example, D10 represents the two registers D10 (Low Word) and D11 (High Word).

PSOFF

EN,Ps

Ps: 0~3 forces the Pulse Output group to stop outputting.

INTDisable

LB

LBL: The name of the interrupt mark that prohibits external input or peripheral action.

INTEnable

LB

LBL: Allows external input or peripheral tag name to interrupt the action.

TARESUB

EN,RST,ID,CH,SB,

ERR

ID: expansion module ID number (0 ~ N) CH: channel index (0 ~ N) SB: 32BIT value of the tare weight to be deducted

TAREZEOFFSET

EN,MD,ID,CH,WR,ERR

MFSysCAMR

EN,Md,D,ID,L,ACT,ERR,DN

Read E-Cam data

Route 1: From PLC

Md: 0

D: The initial address of the PLC register after the E-Cam data is read

ID: E-Cam number

L: E-Cam resolution

Route 2: From FATEK SD card

Md: 1

D: FATEK SD card E-Cam data’s file number

ID: E-Cam number

L: E-Cam resolution

MFSysCAMW

EN,Md,D,ID,L,ACT,ERR,DN

Write E-Cam data

Route 1: From PLC

Md: 0

D: The initial address of the written E-Cam data in the PLC register

ID: E-Cam number

L: E-Cam resolution

Route 2: From FATEK SD card

Md: 1

D: FATEK SD card E-Cam data’s file number

ID: E-Cam number

L: E-Cam resolution

MFSysInit

EN,ACT,ERR,DN

Enable the Motion function / open the driver connection

MFSysRCPR

EN,Md,D,Gp,ACT,ERR,DN

Read the formula according to the content set

by the sports formula

Route 1: From PLC

Md: 0

D: meaningless in mode 0

Gp:

Read all set recipes = 0,

Read first set recipe = 1, and so on

Route 2: From FATEK SD card

Md: 1

D: FATEK SD card recipe file number

Gp:

Read all set recipes = 0,

Read first set recipe = 1, and so on

MFSysRCPW

EN,MD,D,GP,ACT, ERR,DN

Write the formula according to the content set by the sports formula

Route 1: From PLC

Md: 0

D: meaningless in mode 0

Gp: Write all set recipes = 0, write first set recipe = 1, and so on

Route 2: From FATEK SD card

Md: 1

D: FATEK SD card recipe file number

Gp: Write all set recipes = 0, write first set recipe = 1, and so on

MFSysRstAlm

EN,ACT,ERR,DN

Remade motion control bug

MFSysSetVirt

EN,AX,ACT,ERR,DN

Translate Real axis to virtual axis

It is used when the physical shaft is sent for repair or the amount of shafts of different project models is reduced

AX: axis number

MFSysStop

EN,ACT,ERR,DN

Stop the Motion function / close the drive connection

MFChgTbPrm

EN,GP,ID,N,D,ERR,DN

single data mapping

TM: form type

PN: form number

S: project

PV: mapped value

MFFlowHalt

EN,ID,ACT,ERR,DN

Immediately suspend the Motion Flow

ID: Motion Flow number

MFFlowPause

EN,ID,ACT,ERR,DN

After completing the current action block, pause the Motion Flow

ID: Motion Flow number

MFFlowStart

EN,ID,ACT,ERR,DN

Start Motion Flow

ID: Motion Flow number

MFFlowStop

EN,ID,ACT,ERR,DN

Abort Motion Flow

ID: Motion Flow number

MFMapTbPrm

EN,GP,ID,N,D,ERR,DN

Map data according to the motion parameter mapping table

Gp: Mapping table page number

N: Starting item number

L: amount of mapped items

MFHome

EN,AX,ACT,ERR, DN

Execute axis homing mode

AX: axis number

MFJog

EN,D_R, AX, MD,ACT,ERR ,DN

Execute Jog mode

AX: axis number

MD: Continuous motion at start speed (0), jog at start speed (1), continuous motion at JOG speed (2), jog at JOG speed (3)

D/R: positive direction (ON) / negative direction (OFF)D/R:Positive direction (ON) / Negative direction (OFF)

MFPointMov

EN,PT,AX,ACT,ERR,DN

Execution point table positioning mode

Pt: point number

AX: Axis number

MFAxCirMov

EN,UPD,TAX,MD, DR,BF,D,EC,ACT,ERR,DN,UPD

Total number of axes (TAX):

Mode (MD):

0: absolute, 1: relative

Direction (DR):

1: Forward, 2: Reverse

Continuous mode (BF):

0 = execute current instruction immediately

1 = wait for the previous instruction to complete

2 = Select lower speed continuous

3 = Select the previous command speed

4 = Select current command speed

5 = Select higher speed continuous

Click Data (D):

scratchpad starting position

Error code (EC):

scratchpad storage location

MFAxLMov

EN,UPD,TAX,MD, DR,BF,D,EC,ACT, ERR,DN,UPD

MFAxMov

MFAxMov_D

EN,UPD_in,AX,MD,Ps,V_n,A,D,SA,SD,DR,BF,ACT,ERR,DN,UPD_out

Execute single-axis positioning mode

S: spindle number

MD: Absolute coordinates (0) / Relative coordinates (1) / Infinite distance mode (2)

Ps: target coordinates

V: Maximum linear speed

A: Maximum acceleration

D: Maximum deceleration

SA: Acceleration section S curve proportion (unit: 0.1%)

SD: S curve ratio of deceleration section (unit: 0.1%)

DR: Positive direction (1) / Negative direction (2)

BF: continuous point mode

MFGearMPG MFGearMPG_D

EN,UPD_in,M,S,N,D,T,ACT,ERR,DN,UPD_out

M: (Spindle)

1~16: axis number

100: Gray code (X8~15)

101~108: HSC0~7

S: (slave axis)

1~16: axis number

N: (conversion numerator)

Integer, including decimal point from axis

D: (conversion denominator)

Positive integer including main axis decimal point

T: (smoothing time)

positive integer

Unit: ms

MFPathMov

EN,ACT,UPD,AX1,AX2,AX3,PT,V,TA,TD,SA,SD,EC,ACT,ERR,DN,UPD

AX1: Axis 1

AX2: Axis 2

AX3: Axis 3

PT: path number

V: Vel

positive integer

Includes spindle decimal point

TA, TD:

acceleration time

Positive integer (ms)

SA, SD: (S proportion %)

0.0% ~ 100.0%

Unit: 0.1%

EC: register storage location

MFTorqCtl MFTorqCtl_D

EN,UPD_in,AX,T,MX,ACT,ERR,DN, UPD_out

AX:

1~16: axis number

T:

Unit: 0.1%

MX:

Maximum speed

MFVelCtl MFVelCtl_D

EN,UPD_in,AX,T,MX,ACT,ERR,DN, UPD_out

AX:

1~16: axis number

V:

Unit: See the drive

MX:

Maximum torque

Was this page helpful?

Tip: press ← → to switch chapters, Ctrl+K to search