Event data. Schneider Electric PL7 Micro/Junior/Pro - Communication applications, volume 1
광고
광고
Uni-telway programming
18.5
Event data
Event data managed by the master
Event data
Operating principles
Event data is information sent to the master at the initiative of a server slave station.
The following table describes the processing phases for communication by event data:
Phases
1
2
3
Description
The slave station sends event data to the master station PCMCIA card.
The actual reception of data by the card initializes a %IW0.1.2 or %IW0.1.3
word bit. Each input word bit is associated with a link address.
When one of these bits has been detected, the application sends a SEND_REQ communication function with the code 16#32 to the master station PCMCIA card to read the data.
Communication function
Uni-telway request: 16#82 is used to read event data by accessing the Uni-telway
PCMCIA server:
SEND_REQ(ADR#0.1.SYS, 16#0082, %MW20:10, %MW50:30, %MW100:4)
The transmission buffer contains the following data:
%MW21
%MW22
%MW23
%MW24
%MW25
Byte 1 (most significant)
16#31
16#01
Slave number
16#FF
16#00
Byte 0 (least significant)
16#06
16#00
16#00
16#00
Number of slaves
The buffer corresponds to the following coding:
Parameters
Segment number
Family number
Number of type
Address
Access type
Quantity
Size
1 byte
2 bytes
2 bytes
1 byte
2 bytes
2 bytes
Value
16#06
16#0031
16#0001
Slave number
16#00FF
16#00 No. of slaves
TLX DS COM PL7 xxE
305
Uni-telway programming
306
TLX DS COM PL7 xxE
Debugging a Uni-telway communication
19
Introduction
Aim of this
Chapter
What's in this
Chapter?
This chapter describes the Debugging process during set-up of Uni-telway communication.
This Chapter contains the following Maps:
Topic
Uni-telway debugging screen
Uni-telway debugging screen
Requests available for the communication channel test
How to test a channel with Identification and Mirror requests
How to test a channel with requests
Page
TLX DS COM PL7 xxE
307
Uni-telway debugging
Uni-telway debugging screen
Introduction
Type window
Elements and functions
This screen, split into two zones, is used to declare the communication channel and to configure the necessary parameters for communication with nano-PLCs.
The window looks like this:
T
Deb
This table describes the different zones that make up the debugging screen:
Address Zone
1 common
2 specific
Function
See
Description of communication debugging screens, p. 168 .
Is used to access link debugging parameters.
308
TLX DS COM PL7 xxE
Uni-telway debugging
Uni-telway debugging screen
Introduction
Type window
Counters window
Channel test window l l l
The specific part is split into three windows: the Type window, the Counters window, the Channel test window.
The window looks like this:
Type
Master
It shows the type of Uni-telway function which is configured (master or slave).
The window looks like this:
Local Error Counters
Messages sent and not acknowledged
Received and not acknowledged
0
0
Sent and refused
Received and refused
Reset Counters
0
0
This window displays the communication module's different error counters.
The button Reset Counters resets these counters to zero.
The window looks like this:
Channel Test
Identification
3
4
1
2
5
Counters
Reset Counters
Enter Request
Slave
Mirror
Request Response
42 0D 22 0A 43 43 58 31 37 5F 33 30 4C 57
ASCII Hex.
This window is used to test a communication channel by sending a UNI-TE request to one of the stations on the bus.
TLX DS COM PL7 xxE
309
Uni-telway debugging
Requests available for the communication channel test
Introduction
Test conditions
Available requests
This page describes the different possibilities for testing a communication channel from the debugging screen.
Sending a request to an non-server or unconnected slave address results in an error message.
When the module has been configured in Uni-telway master mode, the debugging window can be used to send a UNI-TE request to one of the slaves on the bus.
When the module has been configured Uni-telway slave mode, the channel test is limited to the master device.
The Channel Test window allows the following requests: l Identification: prompts the Identification request to be sent to the designated slave, l Counters: prompts the Read error counters request to be sent to the designated l slave,
Reset Counters: prompts the designated station’s error counters to be reset to l zero,
Enter request: allows a UNI-TE request, other than those provided by the command buttons, to be sent to the designated slave. Selecting this function gives access to a screen that allows you to select the parameters that are specific l to the request (request code must be coded in hexadecimal),
Mirror: allows a mirror request to be sent to the designated slave. Selecting this function gives access to a screen that allows you to select the length of the character string to be sent (a maximum of 80 characters ). The PLC then sends this character string (ABCD….) to the destination device. The latter automatically sends the character string that was received back to the sender.
310
TLX DS COM PL7 xxE
Uni-telway debugging
How to test a channel with Identification and Mirror requests
Introduction This page indicates the procedure for testing a communication channel by means of
Identification and Mirror requests.
How to identify a station
The following procedure is used to identify a designated station.
Step
1
2
Actions
Select the server address (Ad0)of the slave to be interrogated using the Slave field.
Click on the Identification button.
Result
The response appears in the Receive Response window:
Request Response
B.”.CCX17_30LW
ASCII Hex.
How to send the
Mirror request
The following procedure is used to send the Mirror request and thus to test the routing of information between two devices.
Step
1
2
Action
Select the server address (Ad0)of the slave to be interrogated using the Slave field.
Click on the Mirror button.
Result
The following window appears:
Mirror Request
Length of data to be sent 8
Send Cancel
3
4
Enter the length of data to be sent (maximum 80 characters).
Click on the Send button.
Result
The response appears in the Receive Response window:
Request Response
ABCDEFGH
ASCII Hex.
The response contains: l the character string ABCDEFGH that corresponds to the length of data sent 8.
TLX DS COM PL7 xxE
311
Uni-telway debugging
How to test a channel with requests
Introduction
How to send a request
This page indicates the procedure for testing a communication channel from the debugging screen using different requests.
The following procedure is used to send a request, other than those provided by the command buttons, to a designated station.
Step
1
2
Action
Select the address of the slave to be interrogated using the Slave field.
Click on the Enter Request button.
Result
The following window appears:
Enter Request
Request Code (Hexadecimal)
fa
Data (Hexadecimal)
1234db
3
4
5
Send Cancel
The data sent in this example is coded on 3 bytes.
Enter the function code (coded in hexadecimal on one byte), corresponding to the request that you want to send.
Enter the data to be sent by coding all the data in hexadecimal. Enter the data continuously without any intervening spaces.
Click on the Send button.
Result
The response appears in the Receive Response window:
Request Response
12 43 DB
ASCII Hex.
The response from the example has data on 3 bytes (12 43 DB).
312
TLX DS COM PL7 xxE
Language objects associated with
Uni-telway communication
20
Introduction
Aim of this section
What's in this
Chapter?
This chapter introduces language objects associated with Uni-telway communication.
This Chapter contains the following Sections:
Section
20.1
20.2
Topic
Language objects associated with master Uni-telway mode
Language objects associated with slave Uni-telway mode
Page
TLX DS COM PL7 xxE
313
다운로드
광고