You are on page 1of 5

SIMATIC N3883001\SIMATIC 300(1)\PLC315-2DP M/S 2AF03\...

\FC115 - <offline> 10/28/2004 13:04:10

FC115 - <offline>
""
Name: Family:
Author: Version: 0.1
Block version: 2
Time stamp Code: 03/06/06 19:14:06Χ΋
Interface: 03/05/02 11:26:15Œß‘O
Lengths (block/logic/data): 00570 00450 00030

Address Declaration Name Type Initial value Comment


in
out
in_out
0.0 temp FC21Err1 BOOL
0.1 temp FC21Err2 BOOL
0.2 temp FC21Err3 BOOL
0.3 temp FC21Err4 BOOL
2.0 temp FC21Code1 INT
4.0 temp FC21Code2 INT
6.0 temp FC21Code3 INT
8.0 temp FC21Code4 INT
10.0 temp ByteData0 BYTE
11.0 temp ByteData1 BYTE

Block: FC115 General PLC <-> NCK Data Transfer


Rev. 2003-5-1: YSNC (for Macro i/o)

Caution: Small Data Transferred Size is better for PLC scan time.
That means Small Size of S7Var argument of FC21 is better.
DB176: DB to read from $A_DBB[230] to [236]
DB177: DB to write from $A_DBB[240] to [246]

Page 1..
SIMATIC N3883001\SIMATIC 300(1)\PLC315-2DP M/S 2AF03\...\FC115 - <offline> 10/28/2004 13:04:10

Network: 1 NCK -> PLC Data Read


DB176: Byte0= bit address 0~7
Byte1= bit address 8~15
Byte2= bit address 16~24
Byte3= bit address 25~32
Byte4= byte address 0
Byte5= byte address 1

FC21
EN ENO

M1.1 Enable Error #FC21Err2

B#16#3 Funct ErrCode #FC21Code2

P#DB176.DB
X0.0 BYTE
4 S7Var

230 IVAR1
234 IVAR2

Symbol information
FC21 Transfer Quick Datachannel
M1.1 AlwaysON Always on signal

Page 2..
SIMATIC N3883001\SIMATIC 300(1)\PLC315-2DP M/S 2AF03\...\FC115 - <offline> 10/28/2004 13:04:10

Network: 2 PLC -> NCK Data Write


DB177: Byte0= bit address 0~7
Byte1= bit address 8~15
Byte2= bit address 16~24
Byte3= bit address 25~32
Byte4= byte address 0
Byte5= byte address 1

FC21
EN ENO

M1.1 Enable Error #FC21Err1

B#16#4 Funct ErrCode #FC21Code1

P#DB177.DB
X0.0 BYTE
4 S7Var

240 IVAR1
244 IVAR2

Symbol information
FC21 Transfer Quick Datachannel
M1.1 AlwaysON Always on signal

Network: 3 Initial Set

L 0
T #ByteData0
L 1
T #ByteData1

Network: 4 NCK -> PLC Data Read (Sub logic for Semaphore)

This logic is equal to a program "$A_DBB[218]=1".

Page 3..
SIMATIC N3883001\SIMATIC 300(1)\PLC315-2DP M/S 2AF03\...\FC115 - <offline> 10/28/2004 13:04:10

If "DEFINE PLCWR AS $A_DBB[218]=1" is insertted in F:\dh\DEF\UMAC.DEF,


You can command "PLCWR" instead of this logic.
That means you can delete this logic.

FC21
EN ENO

M1.1 Enable Error #FC21Err3

B#16#4 Funct ErrCode #FC21Code3

#ByteData1 S7Var
234 IVAR1
-1 IVAR2

Symbol information
FC21 Transfer Quick Datachannel
M1.1 AlwaysON Always on signal

Network: 5 PLC -> NCK Data Write (Sub logic for Semaphore)

FC21
EN ENO

M1.1 Enable Error #FC21Err4

B#16#4 Funct ErrCode #FC21Code4

#ByteData0 S7Var

244 IVAR1

-1 IVAR2

Symbol information
FC21 Transfer Quick Datachannel

Page 4..
SIMATIC N3883001\SIMATIC 300(1)\PLC315-2DP M/S 2AF03\...\FC115 - <offline> 10/28/2004 13:04:10

M1.1 AlwaysON Always on signal

Page 5

You might also like