Example Program For Reading And Writing Digital Values - Siemens SIMOTION Function Manual

Extension to the command interface for as-interface master modules
Hide thumbs Also See for SIMOTION:
Table of Contents

Advertisement

dataAnaIn1
dataAnaIn2
The following variables indicate the status of the read/write of the analog values:
doneAnaWrite
errorAnaWrite
errorIdAnaWrite
doneAnaRead
errorAnaRead
errorIdAnaRead
6.2.3

Example program for reading and writing digital values

The ExampleAsiDigital example program writes and reads binary values from and to an AS-
Interface slave with digital inputs and outputs. A slave with 2 digital inputs, 2 digital outputs,
and AS-Interface slave address 3 is used.
Write or read the digital values in the following variables:
dataDigOut1
dataDigOut2
dataDigIn1
dataDigIn2
Extension to the command interface for AS-Interface master modules
Function Manual, 01/2015
: Read analog value for channel 1
: Read analog value for channel 2
: Write analog value (data record transfer) completed without error
: Write analog value (data record transfer) completed with error
: Error specification of the data transfer/error code (see _readRecord
and _writeRecord system functions, and Chap. Error messages / diagno‐
sis (Page 39))
: Read analog value (data record transfer) completed without error
: Read analog value (data record transfer) completed with error
: Error specification of the data transfer/error code (see _readRecord
and _writeRecord system functions, and Chap. Error messages / diagno‐
sis (Page 39))
: Value to be written for digital output 1
: Value to be written for digital output 2
: Digital value read from input 1
: Digital value read from input 2
Example of an application
6.2 Execution of the example project programs
37

Advertisement

Table of Contents
loading

Table of Contents