Peripheral Devices
9836 3521 01
555
8.14.4.10 GetPLCStringEx
Description:
This method reads 40 consecutive bytes from the PLC output data area for ExtCom_API.
The read data is returned as an ASCII string.
Note! Variables declared as STRING in the PLC are prefixed by two Short integers (four
bytes) where the first short specifies max possible length of the string calculated as Max
length
– 80. The second short defines the strings current length. That is, the first character
of the string is located at offset 4 (fourth byte). All PLC strings are also terminated with a
NULL (0) character. This method
does not
handle the four leading bytes.
Example
: To read the string declared as below from PowerMACS station 1
MyString AT %QB 2600 : STRING40;
you should call:
MyApi.GetPLCStringEx(1, 2604, Value)
Return type:
Syntax:
object.
GetPLCStringEx
(Station, Address, Value)
Obj./Arg.
Type
Dir
Description
object
Api
The Api object to operate on.
Station
Integer
In
Specifies which stations PLC to access. Range 0
– 15 where
0 correspond to the station connected to the API device.
Address
Integer
In
Specifies the offset in the PLC area of the first byte to read.
Range 0
– 999.
Value
String
Out
The read data interpreted as a string.
8.14.4.11 SetPLCStringEx
Description:
This method writes the specified string to the PLC input data area for ExtCom_API as 40
consecutive bytes. Each byte will be set to the ASCII value of the respective character. See
also the note for SetPLCString.
Return type:
Syntax:
object.
SetPLCStringEx
(Station, Address, Value)
Obj./Arg.
Type
Dir
Description
object
Api
The Api object to operate on.
Station
Integer
In
Specifies which stations PLC to access. Range 0
– 15 where
0 correspond to the station connected to the API device.
Address
Integer
In
Specifies the offset in the PLC area of the first byte to write to.
Range 0
– 999.
Value
String
In
The data to write.
Содержание PowerMACS 4000
Страница 1: ...User guide PowerMACS 4000 Atlas Copco Tools and Assembly Systems 9836 3521 01 2010 11 Edition 10 3 0...
Страница 2: ......
Страница 46: ...System Architecture 46 9836 3521 01...
Страница 127: ...Set Up and Maintenance 9836 3521 01 127 See chapter Station Set Up for a description of the parameters...
Страница 267: ...Tightening 9836 3521 01 267...
Страница 400: ...Tightening 400 9836 3521 01...
Страница 422: ...Peripheral Devices 422 9836 3521 01 When connected to a system the form will show show the signal values in realtime...
Страница 486: ...Peripheral Devices 486 9836 3521 01...
Страница 622: ...Peripheral Devices 622 9836 3521 01...
Страница 664: ...References 664 9836 3521 01...
Страница 668: ...9836 3521 01 2010 11 Edition 10 3 0 www atlascopco com...