The document provides an overview of the instruction sets available for C-Series PLCs, listing various categories of instructions including logic, math, timing, data movement, communications, and more. It describes the different types of instructions and provides links to more detailed information about each individual instruction. The document serves as a helpful reference for programmers to understand the capabilities and features available in C-Series PLC instruction sets.
The document provides an overview of the instruction sets available for C-Series PLCs, listing various categories of instructions including logic, math, timing, data movement, communications, and more. It describes the different types of instructions and provides links to more detailed information about each individual instruction. The document serves as a helpful reference for programmers to understand the capabilities and features available in C-Series PLC instruction sets.
The document provides an overview of the instruction sets available for C-Series PLCs, listing various categories of instructions including logic, math, timing, data movement, communications, and more. It describes the different types of instructions and provides links to more detailed information about each individual instruction. The document serves as a helpful reference for programmers to understand the capabilities and features available in C-Series PLC instruction sets.
The document provides an overview of the instruction sets available for C-Series PLCs, listing various categories of instructions including logic, math, timing, data movement, communications, and more. It describes the different types of instructions and provides links to more detailed information about each individual instruction. The document serves as a helpful reference for programmers to understand the capabilities and features available in C-Series PLC instruction sets.
Every PLC has a set of special instructions which can be used for programming. Different types of PLC have different abilities and this is reflected in the instructions available. Some instructions are common across all PLCs. PLCs can be split into 3 families - the instruction sets for each are described below: C-Series PLC Instructions Contents LADDER PROGRAM CONTROL BIT CONTROL TIMER/COUNTER SUBROUTINE DATA SHIFTING DATA MOVEMENT DATA COMPRESSION DATA CONVERSATION BCD CALCULATION BINARY CALCULATION SPECIAL MATHS FLOATING POINT MATHS INPUT COMPARISON SYMBOL MATHS TIME LOGIC FLAG/REGISTER ADVANCED I/O PULSE PID SERIAL COMMS. NETWORK ID COMMS. INTERRUPT CONTROL I/O INSTRUCTIONS ERROR & DIAGNOSTICS SYSTEM CONTROL BLOCK PROGRAMMING COMMENT -For help on any instruction, click on the name in the lists below: Ladder Instructions AND And ANDL D And Load AND NT And Not LD Load LD NOT Load Not OR Or OR LD Or Load OR NOT Or Not OUT Output OUT NOT Output Not Program Control Instructions END (01) End IL (02) Interlock ILC (03) Interlock Clear JME (05) Jump End JMP (04) Jump NOP (00) No Operation STEP (08) Step Define SNXT (09) Step Start STOP (99) Run Stop Bit Control Instructions
DIFU (13) Differentiate Up DIFD (14) Differentiate Down KEEP (11) Keep RSET Reset SET Set TST (350) Test Bit TSTN (351) Test Bit Not Timer/Counter Instructions CNT Counter CNTR (12) Reversible Counter CTBL (--) Register Comparison Table INI (--) Mode Control PRV (--) High-Speed Counter PV Read STIM (--) Interval Timer TIM Timer TIML (--) Long Timer TIMH (15) High-Speed Timer TMHH (--) Very High-Speed Timer TTIM (87) Totalizing Timer Subroutine Instructions
CMCR (--) PCMCIA Card Macro MCRO (99) Macro PMCR (--) Protocol Macro RET (93) Return SBN (92) Subroutine Define SBS (91) Subroutine Entry Data Shifting Instructions ASFT (--) Asynchronous Shift Register ASL (25) Arithmetic Shift Left ASR (26) Arithmetic Shift Right ROL (27) Rotate Left ROR (28) Rotate Right SFT (10) Shift Register SFTR (84) Reversible Shift Register SLD (74) One Digit Shift Left SRD (75) One Digit Shift Right WSFT (16) Word Shift RWS (17) Reversible Word Shift Data Movement Instructions BSET (71) Block Set BXF2 (--) Block Transfer to Other EM Bank BXFR (125) EM Bank Transfer COLL (81) Data Collect DIST (80) Single Word Distribute EMBC (--) Select EM Bank IEMS (--) Set EM Indirect Number MOV (21) Move MOVL (--) Long Move MOVB (82) Move Bit MOVD (83) Move Digit MVN (22) Move Not XCHG (73) Data Exchange XDMR (--) Expansion DM Read XFER (70) Block Transfer XFRB (--) Transfer Bits XFR2 (--) Block Transfer by Constant Value Data Comparison Instructions BCMP (68) Block Compare CMP (20) Compare CMPL (60) Double Compare CPS (--) Signed Binary Compare CPSL (--) Double Signed Binary Compare MCMP (19) Multi-Word Compare SRCH (--) Data Search TCMP (85) Table Compare ZCP (--) Area Range Compare ZCPL (--) Double Area Range Compare Data Conversion Instructions ASC (86) ASCII Convert BCD (24) Binary to BCD BCDL (59) Double Binary to Double BCD BCNT (67) Bit Counter BIN (23) BCD to Binary BINL (58) Double BCD to Double Binary COLM (--) Line to Column CTW (63) Column to Word DMPX (77) 16-to-4 Encoder HEX (--) ASCII to Hexadecimal LINE (--) Line MLPX (76) 4-to-16 Decoder NEG (--) 2's Complement NEGL (--) Double 2's Complement SCL (--) Scaling SCL2 (--) Signed Binary to BCD Scaling SCL3 (--) BCD to Signed Binary Scaling SDEC (78) 7-Segment Decoder WTC (64) Word to Column BCD Calculation Instructions ADD (30) BCD Add ADDL (54) Double BCD Add DEC (39) Decrement DIV (33) BCD Divide DIVL (57) Double BCD Divide INC (38) Increment MUL (32) BCD Multiply MULL (56) Double BCD Multiply SUB (31) BCD Subtract SUBL (55) Double BCD Subtract Binary Calculation Instructions ADB (50) Binary Add ADBL (--) Double Binary Add DBS (--) Signed Binary Divide DBSL (--) Double Signed Binary Divide DVB (53) Binary Divide MBS (--) Signed Binary Multiply MBSL (--) Double Signed Binary Multiply MLB (52) Binary Multiply SBB (51) Binary Subtract SBBL (--) Double Binary Subtract Special Maths Instructions APR (--) Arithmetic Process AVG (--) Average Value FDIV (79) Floating Point Divide MAX (--) Find Maximum MIN (--) Find Minimum ROOT (72) Square Root SUM (--) Sum VCAL (69) Value Calculate Floating Point Maths Instructions +F (--) Floating-Point Add -F (--) Floating-Point Subtract *F (--) Floating-Point Multiply /F (--) Floating-Point Divide ACOS (--) Cosine to Angle ASIN (--) Sine to Angle ATAN (--) Tangent to Angle COS (--) Cosine DEG (--) Radians to Degrees EXP (--) Exponent FIX (--) Floating to 16-bit FIXL (--) Floating to 32-bit FLT (--) 16-bit to Floating FLTL (--) 32-bit to Floating LOG (--) Logarithm RAD (--) Degrees to Radians SIN (--) Sine SQRT (--) Square Root TAN (--) Tangent Input Comparison Instructions = (300) Equal =L (301) Double Equal =S (302) Signed Equal =SL (303) Double Signed Equal <> (305) Not Equal <>L (306) Double Not Equal <>S (307) Signed Not Equal <>SL (308) Double Signed Not Equal < (310) Less Than <L (311) Double Less Than <S (312) Signed Less Than <SL (313) Double Signed Less Than <= (315) Less Than Or Equal <=L (316) Double Less Than Or Equal <=S (317) Signed Less Than Or Equal <=SL (318) Double Signed Less Than Or Equal > (320) Greater Than >L (321) Double Greater Than >S (322) Signed Greater Than >SL (323) Double Signed Greater Than >= (325) Greater Than Or Equal >=L (326) Double Greater Than Or Equal >=S (327) Signed Greater Than Or Equal >=SL (328) Double Signed Greater Than Or Equal Symbol Maths Instructions + (400) Signed Binary Add Without Carry +L (401) Double Signed Binary Add Without Carry +C (402) Signed Binary Add With Carry +CL (403) Double Signed Binary Add With Carry +B (404) BCD Add Without Carry +BL (405) Double BCD Add Without Carry +BC (406) BCD Add With Carry +BCL (407) Double BCD Add With Carry - (410) Signed Binary Subtract Without Carry -L (411) Double Signed Binary Subtract Without Carry -C (412) Signed Binary Subtract With Carry -CL (413) Double Signed Binary Subtract With Carry -B (414) BCD Subtract Without Carry -BL (415) Double BCD Subtract Without Carry -BC (416) BCD Subtract With Carry -BCL (417) Double BCD Subtract With Carry * (420) Signed Binary Multiply *L (421) Double Signed Binary Multiply *U (422) Unsigned Binary Multiply *UL (423) Double Unsigned Binary Multiply *B (424) BCD Multiply *BL (425) Double BCD Multiply / (430) Signed Binary Divide /L (431) Double Signed Binary Divide /U (432) Unsigned Binary Divide /UL (433) Double Unsigned Binary Divide /B (434) BCD Divide /BL (435) Double BCD Divide Time Instructions HMS (--) Seconds to Hours SEC (--) Hours to Seconds HTS (65) Hours to Seconds STH (66) Seconds to Hours Logic Instructions ANDW (34) Logical AND COM (29) Complement ORW (35) Logical OR XNRW (37) Exclusive NOR XORW (36) Exclusive OR Flag/Register Instructions CLC (41) Clear Carry STC (40) Set Carry Advanced I/O Instructions 7SEG (--) 7-Segment Display Output DSW (--) Digital Switch HKY (--) Hexadecimal Key Input MTR (--) Matrix Input TKY (--) Ten Key Input Pulse Instructions ACC (--) Acceleration Control PLS2 (--) Pulse Output PULS (--) Set Pulses PWM (--) Pulse With Variable Duty Ratio SPED (--) Speed Output SYNC (--) Synchronised Pulse Control PID Instructions PID (--) PID Control Serial Communications Instructions FCS (--) FCS Calculate LMSG (47) Long Message MSG (46) Message Display RXD (--) Receive STUP (--) Setup TERM (48) Terminal Mode TXD (--) Transmit Network Instructions CMND (--) Deliver Command FILP (44) External Program Read FILR (42) File Memory Read FILW (43) File Memory Write RECV (98) Network Receive SEND (90) Network Send ID Communications IDAR (63) DC Autoread IDAW (64) DC Autowrite IDCA (65) DC Clear IDMD (66) DC Manage Data IDRD (61) DC Read IDWT (62) DC Write Interrupt Control Instructions INT (89) Interrupt Control I/O Instructions IORD (--) I/O Read IORF (97) I/O Refresh IOWR (--) I/O Write MPRF (--) Group-2 High-Density I/O Refresh READ (88) Intelligent I/O Read WRIT (87) Intelligent I/O Write Error and Diagnostics Instructions FAL (06) Failure Alarm FALS (07) Severe Failure Alarm FPD (--) Failure Point Detect TRSM (45) Data Tracing System Control Instructions ENDW (62) End Wait SCAN (18) Scan Time FUN49 (49) Set System WDT (94) Watchdog Timer Refresh Block Programming Instructions BEND <01> Block Program End BPPS <11> Block Program Pause BPRG (96) Block Program Begin BPRS <12> Block Program Restart CNTW <14> Counter Wait ELSE <03> Else EXIT <06> Conditional Block Exit IEND <04> Block Branching End IF <02> Block Branching If LEND <10> Block Loop Control End LOOP <09> Block Loop Control RSET <08> Reset SET <07> Set TIMW <13> Timer Wait TMHW <15> High-Speed Timer Wait WAIT <05> One Scan and Wait Comment Instructions NETW (63) Notation Insert