OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 97
TextToValue
Syntax
valuepoint = TextToValue(textpoint)
Remarks
Argument Type
Description
textpoint
text
The text point containing the string that is to be converted into a
number.
valuepoint
integer
A point containing the value returned after conversion from a
string.
Typical Examples
textpoint = “10”
valuepoint = TextToValue(textpoint)
The value 10 is assigned to the point ‘valuepoint’.
textpoint = “10.34”
realpoint = TextToValue(textpoint)
The real value 10.34 is assigned to the real point ‘realpoint’.
ValueToText
Syntax
textpoint = ValueToText(value)
Remarks
Argument Type
Description
value
integer
The number that is to be placed into the textpoint. A point
name is also a valid parameter.
textpoint
text point
A text point containing the value converted into a string.
Typical Examples
textpoint = ValueToText(10)
The value 10 is put into a string and assigned to the text point ‘textpoint’.
value = 10
textpoint = ValueToText(value)
This has the same effect as the previous example.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...