Professional Documents
Culture Documents
Pengenalan
Membolehkan pelatih-pelatih menguasai kemahiran membina ladder diagram dengan software CXProgrammer dengan menggunakan Advanced Command yang boleh memudahkan program. Selain dapat meringkaskan penyambungan. Untuk ini pelatih-pelatih perlu mempelajari arahan yang tertentu untuk merekabenruk program tertentu.
Instruction END (01) IL (02) ILC (03) JME (05) JMP (04) NOT (00) STEP (08) SNTX (09) STOP (99)
Description End Interlock Interlock Clear Jump End Jump No Operation Step Define Step Start Run Stop
Instruction CNT CNTR CTBL HDM INI PRV SDM STIM TIM TIML TIMH TMHH TTIM
Instruction ASFT ASL ASR ROL ROR SFT SFTR SLD SRD WSFT RWS
(--) (25) (26) (27) (28) (10) (84) (74) (75) (16) (17)
Description Asynchronous Shift Register Arithmetic Shift Left Arithmetic Shift Right Rotate Left Rotate Left Shift Register Reversible Shift Register One Digit Shift Left One Digit Shift Right Word Shift Reversible Word Shift
Instruction BSET BXF2 COLL DIST IEMS MOV MOVB MOVD MVN XCHG XDMR XFER XFRB XFR2
Description (71) (--) (81) (80) (--) (21) (82) (83) (22) (73) (--) (70) (--) (--) Block Set Block Transfer to Other EM Bank Data Collect Single Word Distribute Set EM Indirect Number Move Move Bit Move Digit Move Not Data Exchange Expansion DM Read Block Transfer Transfer Bit Block Transfer by Constant Value
Instruction BCMP CMP CMPL CPS CPSL MCMP SRCH TCMP ZCP ZCPL
(68) (20) (60) (--) (--) (19) (--) (85) (--) (--)
Description Block Compare Compare Double Compare Single Binary Compare Double Single Binary Compare Multi-Word Compare Data Search Table Compare Area Range Compare Double Area Range Compare
Instruction ADD ADDL DEC DIV DIVL INC MUL MULL SUB SUBL
Description
(50) (54) (39) (33) (57) (38) (32) (56) (31) (55)
BCD Add Double BCD Add Decrement BCD Divide Double BCD Divide Increment BCD Multiply Double BCD Multiply BCD Subtract Double BCD Subtract
SET instruction
SET instruction
SET
00
1000 RSET
01
1000
RESET instruction
KEEP instruction
KEEP instruction
Used momentary switches to latch and reset output. Operates like a latching relay that is set by S and reset by R. Remains ON or OFF state of a bit until one of its two inputs sets or reset.
00
00 LD
KEEP (11) S
000.00 000.01
01 LD
01
10.02
KEEP instruction
MOV instruction
MOV instruction
2 1 2 1
1 0 1 0
0 0 0 0
MOV instruction
DIFU instruction
DIFU instruction
DIFU turns its output ON when it detects an OFF > ON transition in its input signal. DIFD turns its output ON when it detects an ON > OFF transition in its input signal.
DIFU instruction
DIFU
200.00
010.00
000.00 DIFU
DIFD
DIFU and DIFD only turns an output ON for only one scan/pulse.
DIFU instruction
DIFD instruction
DIFD instruction
ADD instruction
ADD instruction
SUB instruction
SUB instruction
CMP instruction
CMP instruction
CMP is used to compare the data in a specific channel, with the data in another channel, or a 4-digit, hexadecimal constant. 00000
CMP(20) CP1 First compare word CP2 Second compare word
25505
Greater Than
25506
Equal To
25507
Less Than
CMP instruction