사용자 도구

사이트 도구

English

plcinstructions:index

Instructions

  • Bit : Bit Address
  • Const/Reg : Constant and address (D,DD,KD,KDD,C,T,KC,KT) and can use TimeValue
  • Reg : address (D,DD,KD,KDD,C,T,KC,KT)
  • C : Counter address (C, KC)
  • T : Timer address (T, KT)

TimeValue

Timer value Real value Description
100 100 mS
0.1S 100 Sec
1S 1000 Sec
1M 60000 Minute
Instruction Parameter Description Example Example Description
FLASHER Bit Const/Reg Flash Output FLASHER Y0 100 Y0 on 100ms and off 100ms forever
DEBOUNCE Bit Const/Reg Debounce Output DEBOUNCE Y0 100 during 100mS input ON then Y0 is ON
TOGGLE Bit Reverse Output TOGGLE Y0 If Y0 is Off then make On
CTU C Const/Reg Up Counter CTU C0 100
CTD C Const/Reg Down Counter CTD C0 100
CTUD C Const/Reg Bit Up & Down Counter CTUD C0 100 X1 X1 is Down Counter Input
CTR C Const/Reg Ring Counter CTR C0 100 100 –> 0
TON T Const/Reg On Timer TON T0 100
TOFF T Const/Reg Off Timer TOFF T0 100
TMON T Const/Reg Momentary Timer TMON T0 100
TRTG T Const/Reg Trigger Timer TRTG T0 100
MATH Reg = Const/Reg symbol Const/Reg MATH D0=D0+10 D0 ← D0+10
INC Reg INC D0 D0 ← D0+1
DEC Reg DEC D0 D0 ← D0-1
MOV Const/Reg Reg MOV D0 D8 D0 → D8
SHIFT Reg Reg SHIFT D0 D5 D0 → D1, D1 → D2, D2 → D3, D3 → D4, D4 → D5, D5 → D0
SHIFT D5 D0 D5 → D4, D4 → D3, D3 → D2, D2 → D1, D1 → D0, D0 → D5
plcinstructions/index.txt · 마지막으로 수정됨: 2020/08/28 14:57 저자 Comfile Technology