Adapting the application example
The configuration in the example and its available hardware must be adapted.
The following options are available:
● You can adapt the configuration in the example to the available hardware (PROFIBUS DP
address).
● You can adapt the configuration of the hardware to the example (PROFIBUS DP address).
Calling the application example
The application example can be found on the "SIMOTION Utilities & Applications" CD-ROM.
The "SIMOTION Utilities & Applications" CD-ROM is provided free of charge and part of the
SIMOTION SCOUT scope of delivery.
1. Dearchive and open the project containing the application example.
2. Check the axis configuration: PROFIBUS DP addresses.
3. Check the module addresses (hardware configuration) against the I/O addresses of the
controller in SIMOTION SCOUT and the module addresses in the program
(myModuleAddr_1, myModuleAddr_2).
4. Save and compile the example project. Then, you can download the example to the
SIMOTION device and switch to RUN mode.
Sequence of the application example
Input icons used
Table 3-8
Input icons used
Symbol
Data type
Description
mySelectPointToPoint
BOOL
Select point-to-point communication
myExecSend
BOOL
Initiate send request
mySendOrder1
BOOL
Select send: Request 1
mySendOrder2
BOOL
Select send: Request 2
myAbortSend
BOOL
Abort send request
myEnableToReceive
BOOL
Receive enable
myReceiveOrder1
BOOL
Select receive: Request 1
myReceiveOrder2
BOOL
Select receive: Request 2
myAbortReceive
BOOL
Abort receive request
myDataLengthSend
INT
Length/number of data to be sent
myDataOffsetSend
INT
1. byte in the send data array
myDataOffsetReceive
INT
1. byte in the receive data array
myModuleAddr_1
DINT
Module address first ET 200S 1SI
myModuleAddr_2
DINT
Module address second ET 200S 1SI
mySendDataArray
ARRAY [0..1023] of BYTE
Send data array
Function blocks of the ET 200S 1SI serial interface module
3.11 Application example for the ET 200S 1SI serial interface module
Supplement to the ET 200S 1SI serial interface module
40
Function Manual, 01/2015, xxx