dee 3323.09 advance command

Upload: nabilo20

Post on 10-Feb-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/22/2019 DEE 3323.09 Advance Command

    1/34

    EN. MUHAMAD NABIL BIN MANSOR

  • 7/22/2019 DEE 3323.09 Advance Command

    2/34

    Membolehkan pelatih-pelatih menguasai kemahiranmembina ladder diagram dengan software CX-

    Programmer 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.

    Pengenalan

  • 7/22/2019 DEE 3323.09 Advance Command

    3/34

    Program Control Instruction

    Program Control Instruction adalah arahan khusus dalam litar yang diprogramkan

    itu sendiri contohnya menamatkan program. Melompat dari arahan ke arahanyang lain atau memberhentikan operasi sebelum operasi lain tamat.

    Instruction Description

    END

    IL

    ILC

    JME

    JMP

    NOT

    STEP

    SNTXSTOP

    (01)

    (02)

    (03)

    (05)

    (04)

    (00)

    (08)

    (09)(99)

    End

    Interlock

    Interlock Clear

    Jump End

    Jump

    No Operation

    Step Define

    Step StartRun Stop

  • 7/22/2019 DEE 3323.09 Advance Command

    4/34

    Bit Control Instruction

    Arahan khusus untuk kawalan bit / signal. Sebagi contoh untuk meneruskan

    signal dalam masa menerima signal yang sekejap. Begitu juga sebaliknya.

    Instruction Description

    DIFU

    DIFD

    KEEP

    RSET

    SET

    (13)

    (14)

    (11)

    Differentiate Up

    Differentiate

    Down

    Keep

    Reset

    Set

  • 7/22/2019 DEE 3323.09 Advance Command

    5/34

    Timer / Counter Instruction

    Selain dari Timer dan Counter yang biasa digunakan dalam mnjarakkan masa

    serta pengiraan bit, terdapat juga Timer dan Counter lain yang juga berfungsisama seperti biasa tetapi dengan cara yang berbeza.

    Instruction Description

    CNT

    CNTRCTBL

    HDM

    INI

    PRV

    SDM

    STIMTIM

    TIML

    TIMH

    TMHH

    TTIM

    (12)(--)

    (61)

    (--)

    (--)

    (60)

    (--)

    (--)

    (15)

    (--)

    (87)

    Counter

    Reversible CounterRegister Comparison Table

    High-Speed Counter

    Mode Control

    High Speed Counter PV Read

    Reversible Drum Counter

    Interval TimerTimer

    Long Timer

    High-Speed Timer

    Very High-Speed Timer

    Totalizing Timer

  • 7/22/2019 DEE 3323.09 Advance Command

    6/34

    Data Shifting Instruction

    Instruction DescriptionASFT

    ASL

    ASR

    ROL

    RORSFT

    SFTR

    SLD

    SRD

    WSFT

    RWS

    (--)

    (25)

    (26)

    (27)

    (28)(10)

    (84)

    (74)

    (75)

    (16)

    (17)

    Asynchronous Shift Register

    Arithmetic Shift Left

    Arithmetic Shift Right

    Rotate Left

    Rotate LeftShift Register

    Reversible Shift Register

    One Digit Shift Left

    One Digit Shift Right

    Word Shift

    Reversible Word Shift

  • 7/22/2019 DEE 3323.09 Advance Command

    7/34

    Data Movement Instruction

    Instruction DescriptionBSET

    BXF2

    COLL

    DIST

    IEMS

    MOVMOVB

    MOVD

    MVN

    XCHG

    XDMR

    XFERXFRB

    XFR2

    (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

    MoveMove Bit

    Move Digit

    Move Not

    Data Exchange

    Expansion DM Read

    Block TransferTransfer Bit

    Block Transfer by Constant Value

  • 7/22/2019 DEE 3323.09 Advance Command

    8/34

    Data Comparison Instructions

    Instruction Description

    BCMP

    CMP

    CMPL

    CPS

    CPSLMCMP

    SRCH

    TCMP

    ZCP

    ZCPL

    (68)

    (20)

    (60)

    (--)

    (--)(19)

    (--)

    (85)

    (--)

    (--)

    Block Compare

    Compare

    Double Compare

    Single Binary Compare

    Double Single Binary CompareMulti-Word Compare

    Data Search

    Table Compare

    Area Range Compare

    Double Area Range Compare

  • 7/22/2019 DEE 3323.09 Advance Command

    9/34

    BCD Calculation Instruction

    Instruction DescriptionADD

    ADDL

    DEC

    DIV

    DIVL

    INC

    MUL

    MULL

    SUB

    SUBL

    (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

  • 7/22/2019 DEE 3323.09 Advance Command

    10/34

    Address Symbol Comment

    252.15

    253.00253.08

    253.09

    253.10

    253.12

    253.13

    253.14

    253.15

    254.00

    254.01254.07

    254.15

    255.00

    255.01

    255.02

    255.03

    255.04

    255.05

    255.06

    255.07

    AR18

    AR19

    AR20

    AR21

    AR25

    AR26

    AR27

    OUTPUT_OFF

    FAL_NUMBERLOW_BATTERY

    SCAN_TIME_ERROR

    IO_VERIFY_ERROR

    REMOTE_IO_ERROR

    ON

    OFF

    FIRST_SCAN

    1_MIN_PULSE

    0-02_SEC_PULSESTEP

    SIOU_ERROR

    0-1_SEC_PULSE

    0-2_SEC_PULSE

    1_SEC_PULSE

    ERROR

    CARRY

    GREATER_THAN

    EQUALS

    LESS_THAN

    SEC+MIN

    HOUR+SATE

    MONTH+YEAR

    DAY

    FALS_ADDRESS

    MAX_SCAN_TIME

    SCAN_TIME

    System Output OFF Bit

    System FAL number output area (00 to 07)System Low Battery Flag

    System Scan Time Error Flag

    System I/O Verification Error Flag

    System Remote I/O Error Flag

    System Normally On Flag

    System Normally Off flag

    System First Scan Flag

    System 1 minute clock pulse bit

    System 0.02 second clock pulse bitSystem Step Flag

    System Special Unit Error Flag

    System 0.1 second clock pulse bit

    System 0.2 second clock pulse bit

    System 1.0 second clock pulse bit

    System Instruction Execution Error (ER) Flag

    System Carry (CY) Flag

    System Greater Than (GE) Flag

    System Equals (EQ) Flag

    System Less than (LE) Flag

    System Seconds (00-07) & Minutes (08-15)

    System Hour (00-07) & Date (08-15)

    System Month (00-07) & Year (08-15)

    System Day of Week (00-07)

    System FALS-generating Address

    System Maximum Scan Time

    System Present Scan Time

    Special Relay (SR)

  • 7/22/2019 DEE 3323.09 Advance Command

    11/34

    SET instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    12/34

    SET instruction

    Used momentary switches to latch and reset

    output.

    00

    01

    SET

    1000

    RSET

    1000

  • 7/22/2019 DEE 3323.09 Advance Command

    13/34

    RESET instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    14/34

    SET and RSET instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    15/34

    KEEP instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    16/34

    KEEP instruction

    Used momentary switches to latch and resetoutput.

    Operates like a latching relay that is set by S andreset by R.

    Remains ON or OFF state of a bit until one of itstwo inputs sets or reset.

    00

    01KEEP (11) S

    10.02 R

    00 LD 000.00

    01 LD 000.01

    02 KEEP (11) 010.02

    03 END (01)

  • 7/22/2019 DEE 3323.09 Advance Command

    17/34

    KEEP instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    18/34

    MOV instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    19/34

    MOV instruction

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

    0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 0

    Channel 100 - Source Word

    15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

    0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 0

    Channel 101 - Destination Word

  • 7/22/2019 DEE 3323.09 Advance Command

    20/34

    MOV instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    21/34

    DIFU instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    22/34

    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.

  • 7/22/2019 DEE 3323.09 Advance Command

    23/34

    DIFU instruction

    000.00

    DIFU

    DIFD

    000.00

    DIFU200.00

    010.00200.00

    DIFU and DIFD only turns an output ON

    for onlyone scan/pulse.

    SW1

    010.01200.01

    000.00DIFD

    200.01SW2

  • 7/22/2019 DEE 3323.09 Advance Command

    24/34

    DIFU instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    25/34

    DIFD instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    26/34

    DIFD instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    27/34

    ADD instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    28/34

    ADD instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    29/34

    SUB instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    30/34

    SUB instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    31/34

    CMP instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    32/34

    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

    First compare word

    Second compare word

    25505

    Greater Than1000

    25506

    Equal To1001

    25507

    Less Than1002

    CMP(20)CP1

    CP2

  • 7/22/2019 DEE 3323.09 Advance Command

    33/34

    CMP instruction

  • 7/22/2019 DEE 3323.09 Advance Command

    34/34