# IEC103Q.CFG # # Example file for use with the IEC-870-5-103 Master protocol driver on the # PTQ platform (two master ports). # [Backplane Configuration] Module Name : PTQ-103M MODULE Failure Flag Count : 0 #Determines if BP failure will cause protocol to be #disabled (0=Ignore, >0 = failure count to disable) Pass-Through Events : Y #Pass event messages to processor # This section is used by the ProTalk module to define the data transferred between # the module and processor. # # Cmd Type --> 0=Disable, 1=Quantum to ProTalk, 2=ProTalk to Quantum, 3=Control , 9903=Pass-Through events # data block for module # DB Address --> address of starting word in database # Point Type --> 0=0x, 1=1x, 3=3x and 4=4x # Point Address --> point address (1 based)(0x and 1x must be at start of word (i.e., 1, 17, 33, ...)) # Word Count --> number of words to transfer (1 to 130) # [Backplane Data Exchange] # Cmd DB Point Point Word # Type Address Type Address Count START 1 0 4 201 100 #move data from PROTALK to Quantum (Controlled Data) 2 100 4 401 100 #move data from Quantum to PROTALK (Monitored Data) 3 2000 4 2001 64 #command control data area 9903 3000 4 3001 130 #only used if Pass-Through Events = Y . Events with timestamps will be passed to processor END # This is the configuration for the IEC-870-5-103 master port emulated on the # module. [IEC-870-5-103 Master] Session Count : 1 #1 to 32 - maximum number of slaves on all channels [IEC-870-5-103 Master Port 0] # Communication Parameters Baud Rate : 9600 #Baud rate for port 110-115200 Parity : E #N=None, O=Odd, E=Even, M=Mark, S=Space RTS On : 0 #0-65536 mSec before message RTS Off : 1 #0-65536 mSec after message Minimum Delay : 10 #Minimum # of mSec before response sent Receive Timeout : 2000 #Maximum mSec from first char to last to wait # These parameters are protocol specific Single char ACK F0,1 or 3 : Y #Single E5 resp to ACK func 0, 1 & 3 req (Y/N) [IEC-870-5-103 Master Port 1] # Communication Parameters Baud Rate : 9600 #Baud rate for port 110-115200 Parity : E #N=None, O=Odd, E=Even, M=Mark, S=Space RTS On : 0 #0-65536 mSec before message RTS Off : 1 #0-65536 mSec after message Minimum Delay : 5 #Minimum # of mSec before response sent Receive Timeout : 1000 #Maximum mSec from first char to last to wait # These parameters are protocol specific Single char ACK F0,1 or 3 : Y #Single E5 resp to ACK func 0, 1 & 3 req (Y/N) # This section is used to define session 0 which runs on Port 0 [IEC-103 Master Session 0] Communication Port : 0 #Index of COM port for session (0 or 1) Sector Count : 1 #5 is max for this version of app Data Link Address : 0 #Range is 0 to 65535 DL address of slave Failure Delay : 1 #Min Sec to delay before poll of offline slave #(0 to 2000 seconds) Confirm Timeout : 1000 #0 to 2^32-1 mSec to wait for DL confirm Retry Count : 0 #0 to 255 retries for if no confirm Response Timeout : 1000 #Timeout for confirm of req (0 to 2^32-1) C1/C2 Poll Count Pend : 5 #class 1 or 2 polls before next slave tried (0-65535) Class 1 Polls : 5 #Max class 1 polls to this session Class 1 Pend delay : 10 #Min mSec delay between call (0 to 2^32-1) Class 2 Pend delay : 10 #Min mSec delay between call (0 to 2^32-1) Class 1 Poll delay : 10 #Min mSec delay between call (0 to 2^32-1) Class 2 Poll delay : 10 #Min mSec delay between call (0 to 2^32-1) [IEC-103 Master Session 0 Sector 0] Common ASDU Address : 0 #Range 0 to 255 Sector address #Req init requests when session first online (not req if slave sends # EOI sequence) Online Time sync : Y #Send time sync message when first online Online General Int : Y #Send general interrogation #Req init requests when EOI (end of initialization) received from slave EOI Time sync : Y #Send time sync message when first online EOI General Int : Y #Send general interrogation # Database definition for this session/sector # Types are as follows: # # Monitored ASDU Types # 1 = Time-tagged message (bit addressed with 2 bits/point) # 2 = Time-tagged message with relative time (bit addressed with 2 bits/point) # 3 = Measurands I (4 word values using word address using double-word address) # 4 = Time-tagged measurands with relative time (1 float value) # 5 = Identification (12 characters using a byte address) # 9 = Measurands II (9 word values using word address) # # Point Index is the information object number in the slave unit. # ASDU Index Description # 1 Bit address with each point occupying 2 bits # 2 Bit address with each point occupying 2 bits # 3 Word address with each point occupying 4 words # 4 Double-word address for the single float value # 5 Byte address with each point occupying 12 bytes # 9 Word address with each point occupying 9 words # # Function Code Values # Code Definition # 128 Distance protection # 160 Overcurrent protection # 176 Transformer differential protection # 192 Line Differential protection # 255 Global function type # # Database Index = Database address in module # # ASDU Database Function Point # Type Index Code Index START 1 0 128 16 2 10 128 64 3 20 128 144 4 20 128 147 5 50 128 5 9 70 128 148 END [IEC-103 Master Session 0 Sector 1] Common ASDU Address : 1 #Range 0 to 255 Sector address #Req init requests when session first online (not req if slave sends # EOI sequence) Online Time sync : Y #Send time sync message when first online Online General Int : Y #Send general interrogation #Req init requests when EOI (end of initialization) received from slave EOI Time sync : Y #Send time sync message when first online EOI General Int : Y #Send general interrogation # Database definition for this session/sector # # ASDU Database Function Point # Type Index Code Index START END [IEC-103 Master Session 0 Sector 2] Common ASDU Address : 2 #Range 0 to 255 Sector address #Req init requests when session first online (not req if slave sends # EOI sequence) Online Time sync : Y #Send time sync message when first online Online General Int : Y #Send general interrogation #Req init requests when EOI (end of initialization) received from slave EOI Time sync : Y #Send time sync message when first online EOI General Int : Y #Send general interrogation # Database definition for this session/sector # Database Index = Database address in module # # ASDU Database Function Point # Type Index Code Index START END # This section is used to define session 0 which runs on Port 1 [IEC-103 Master Session 1] Communication Port : 0 # Sector Count : 3 # Data Link Address : 1 # Failure Delay : 1 # Confirm Timeout : 1000 # Retry Count : 0 # Response Timeout : 2000 # C1/C2 Poll Count Pend : 5 # Class 1 Polls : 5 # Class 1 Pend delay : 10 # Class 2 Pend delay : 10 # Class 1 Poll delay : 10 # Class 2 Poll delay : 10 # [IEC-103 Master Session 1 Sector 0] Common ASDU Address : 0 # Online Time sync : Y # Online General Int : Y # EOI Time sync : Y # EOI General Int : Y # # Database definition for this session/sector # # ASDU Database Function Point # Type Index Code Index START END [IEC-103 Master Session 1 Sector 1] Common ASDU Address : 0 # Online Time sync : Y # Online General Int : Y # EOI Time sync : Y # EOI General Int : Y # # Database definition for this session/sector # # ASDU Database Function Point # Type Index Code Index START END [IEC-103 Master Session 1 Sector 2] Common ASDU Address : 0 # Online Time sync : Y # Online General Int : Y # EOI Time sync : Y # EOI General Int : Y # # Database definition for this session/sector # # ASDU Database Function Point # Type Index Code Index START END [IEC-103 Master Commands] # # Enable code field is as follows: # 0 = Disabled # 1 = Enabled with Poll Interval (seconds) utilized # 2 = Conditional (executed when point in database changes) # # Database Index is the location in the module's database to use as the source # for the data in the command. The data type field determines # the meaning of the index as follows: # Type Description DB Index type # ---- ----------------------------------- -------------------- # 6 Clock synchronization NA # 7 General interrogataion NA # 20 General Command Bit address # # Poll Interval field is utilized when the Enable Code is set to 1. This field # determines the minimum number of seconds to wait between each # execution of the command. # # Session Index represents the session index in the module to associate with the # command. This index is set when the session is read in from # this file. The range of values for this field is 0 to 31. # # Sector Index represents the sector index for the specific session. The range # of values for this field is 0 to 4. # # Data type file represents the ASDU type as follows: # 6 = Time synchronization # 7 = General Interrogation # 20 = General Command # # Function code # Code Definition # 128 Distance protection # 160 Overcurrent protection # 176 Transformer differential protection # 192 Line Differential protection # 255 Global function type # # Point Index field is used to specify the address in the remote slave device # of the point to interact with. # # # Enable Database Poll Session Sector Data Func Point # Code Index Interval Index Index Type Code Index START 0 1600 41 0 0 20 128 16 0 1602 41 0 0 20 128 17 0 1604 41 0 0 20 128 18 0 1606 41 0 0 20 128 19 0 1606 41 0 0 7 255 0 0 0 10 0 0 6 1 0 END