목차 제 1 장개요 제 2 장소프트웨어구조 제 3 장공통요소 I
목차 제 4 장 제 5 장 II
제 6 장 목차 제 7 장펑션과펑션블록 III
목차 제 8 장기본펑션 / 펑션블록라이브러리 IV
목차 V
목차 VI
목차 VII
1-1
1-2
2-1
2-2
2) 3) 2-3
2-4
3-1
3-2
3-3
3-4
3-5
3-6
±± ±± 3-7
3-8
3-9
3-10
3-11
3-12
3-13
3-14
3-15
3-16
3-17
3-18
3-19
4. SFC 4-1
4. SFC TRAN1 4-2
4. SFC 4-3
4. SFC 4-4
4. SFC 4-5
4. SFC 4-6
4. SFC 4-7
4. SFC 4-8
4. SFC 4-9
4. SFC 4-10
4. SFC 4-11
5-1
5-2
5-3
5-4
5-5
5-6
5-7
5-8
5-9
5-10
5-11
5-12
5-13
5-14
5-15
5-16
5-17
5-18
5-19
5-20
5-21
5-22
5-23
5-24
5-25
6-1
6-2
6-3
6-4
Bool Type Bool Type 6-5
6-6
2 6-7
7-1
7-2
7-3
7-4
7-5
7-6
7-7
7-8
7-9
7-10
7-11
7-12
7-13
7-14
π π π π
ππ π π π
ππ π π π
π π
π π
π π
!
16045 16044.83 6 10048 21004 29215 7765 18764 9563 = = + + + + + 11245 0 1 2 3 4 5 6 7 8 9 23454 8764 9563 18764 7765 29215 21004 10048 18081 IN_ARY 10INT
IN_ARY (10 INT ) 0 1 2 3 4 5 6 7 8 9 23 31 34 34 34 34 45 98 85 32 2 4.
SRC[0] SRC[1] SRC[2] SRC[3] 1 Bit Rotate SRC[0] SRC[1] SRC[2] SRC[3] END: (4 WORD ) MSB 13 4 LSB CYO 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0 1 1 1 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 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 0 0 0 CYO[3] STRT: END:
(4 WORD ) CYI CYO MSB 13 4 LSB 0: 1: 2: 3: 0: 1: 2: 3: 0 0 1 1 CYI 0 0 1 1 0: 1: 2: 3: 3 Bit Shift 0: 1: 2: 3: STRT: 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0: 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 1: 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 2: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3: 0 CYO 1 1 0 0 0 1 1 0 1 1 1 1 0 1 1 1 0: 1 1 1 0 0 0 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1: 2: 1 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 3: 0 END:
SEG[3] SEG[2] SEG[1] SEG[0] 4 5 4 3 IN1 B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0 b15 b0 IN2[0] B2 B1 B0 b15 b0 IN2[1] B6 B5 B4 B3 IN2[2] IN2[3] b15 b15 b0 B11 B10 B9 B8 B7 b0 B15 B14 B13 B12
SRC SRC STRT : 1 ARRAY(0) ARRAY(1) ARRAY(2) ARRAY(3) ARRAY(4) ARRAY(5) ARRAY(6) ARRAY(0) ARRAY(1) ARRAY(2) ARRAY(3) ARRAY(4) ARRAY(5) ARRAY(6) END : 7 ARRAY(7) ARRAY(7) ARRAY(8) ARRAY(9) OUT N = 2 ARRAY(8) ARRAY(9)
END : 2 STRT : 8 SRC_ARY 16#11 16#22 16#33 16#44 16#55 16#66 16#77 16#88 16#99 16#AA OUT 44 N = 3 SRC_ARY 16#11 16#22 16#55 16#66 16#77 16#88 16#99 16#33 16#44 16#AA
STRT:0
SRC SRC IN ARRAY(0) ARRAY(0) STRT : 1 ARRAY(1) ARRAY(2) ARRAY(3) ARRAY(4) ARRAY(5) ARRAY(1) ARRAY(2) ARRAY(3) ARRAY(4) ARRAY(5) ARRAY(6) ARRAY(6) END : 7 ARRAY(7) ARRAY(7) ARRAY(8) ARRAY(9) OUT N = 2 ARRAY(8) ARRAY(9)
STRT : 2 END : 8 SRC_ARY 000 111 222 333 444 555 1234 777 888 999 OUT IN 555 1234 N = 3 SRC_ARY 000 111 555 555 555 222 333 444 555 999
STRT:0 :
b15 IN[0] IN[1] b15 b15 IN[2] b15 IN[3] b15 OUT D3 D2 D1 D0 C4 C3 C2 C1 C0 B3 B2 B1 B0 A2 A1 A0 SEG[0]:3 b0 A2 A1 A0 SEG[1]:4 B3 B2 B1 b0 B0 SEG[2]:5 b0 C4 C3 C2 C1 C0 SEG[3]:4 b0 D3 D2 D1 D0 b0
A 3 B 5 3 B 4 C 6 4 C 5 D 7 7 2 D 6 E 8
2
8. / 8-183
8. / CTD 8-184
8-185
8. / CTU 8-186
8-187
8. / CTUD 8-188
8-189
8. / F_TRIG 8-190
8-191
8. / R_TRIG 8-192
!!!! 8-193
8. / SEMA 8-194
8-195
8. / SR 8-196
8-197
8. / TOF 8-198
8-199
8. / TON 8-200
8-201
8. / TP 8-202
8. /
8. / CTR
!
8. / DUTY
!
8. / FIFO_***
FIFO [4] LOAD FIFO PNT:4 [4] IN PNT:3 [3] [2] FIFO[2] [3] [2] FIFO[3] FIFO[2] FIFO[3] [1] FIFO[1] [1] FIFO[1] [0] FIFO[0] [0] FIFO[0] UNLOAD FIFO FIFO PNT:4 [4] [4] [3] [2] [1] [0] FIFO[3] FIFO[2] FIFO[1] FIFO[0] PNT:3 [3] [2] [1] [0] FIFO[3] FIFO[2] FIFO[1] OUT FIFO[0]
8. / FIFO_***
LOAD (%I1.1.0 On) 1111 2222 3333 4444 1111 2222 3333 4444 5555 UNLOAD (%I1.1.1 On) 1111 2222 3333 4444 2222 3333 4444 5555 RESET (%I1.1.15 On) 2222 3333 4444 5555 0 0 0 0 5555 0 0 0 0 FIFO FIFO FIFO FIFO FIFO FIFO IN= 5555 OUT= 1111 PNT=4 PNT=5 PNT=5 PNT=4 PNT=4 PNT=0 [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4]
8. / LIFO_***
LOAD LIFO LIFO [4] PNT:3 [3] PNT:4 [4] [3] LIFO[3] IN [2] LIFO[2] [2] LIFO[2] LIFO[3] [1] LIFO[1] [1] LIFO[1] [0] LIFO[0] [0] LIFO[0] UNLOAD LIFO LIFO PNT:4 [4] [3] LIFO[3] [4] PNT:3 [3] OUT [2] LIFO[2] [2] LIFO[2] LIFO[3] [1] [0] LIFO[1] LIFO[0] [1] [0] LIFO[1] LIFO[0]
8. / LIFO_***
LOAD (%I1.1.0 On) T#11S T#22S T#33S T#44S T#11S T#22S T#33S T#44S T#55S UNLOAD (%I1.1.1 On) T#11S T#22S T#33S T#44S T#11S T#22S T#33S T#44S RESET (%I1.1.15 On) T#11S T#22S T#33S T#44S T#0S T#0S T#0S T#0S T#55S T#0S T#0S T#0S T#0S LIFO LIFO LIFO LIFO LIFO LIFO IN= T#55S OUT= T#55S PNT=4 PNT=5 PNT=5 PNT=4 PNT=4 PNT=0 [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4] [0] [1] [2] [3] [4]
( )
%M1 0 %M2 1 %M2 %M3 0 %M0 2 SC1 Clear %M3 0 3 %M0 0 S_BIT[1] 0 S_BIT[2] S_BIT[0] %Q0.0.0 S_BIT[1] %Q0.0.1 S_BIT[2] S_BIT[2] %Q0.0.2 S_BIT[3] %Q0.0.3 %M0 %M1 %M2 %M3 1 1 1 23 1 98 1 0 %M1
8. / TOF_RST OFF
8. / TON_UNIT
8. / TP_UNIT
8. / TRTG
8-235