您好!欢迎光临工博士商城

爱普生机器人服务商

产品:47    
联系我们
联系方式
  • 联系人:周经理
  • 电话:15900626417
  • 手机:15900626417
新闻分类
  • 暂无分类
站内搜索
 
首页 > 新闻中心 > Epson机器人编程的常见变量--爱普生机器人
新闻中心
Epson机器人编程的常见变量--爱普生机器人
发布时间:2022-05-12        浏览次数:236        返回列表
 1.Boolean 布尔型变量  只能是 True 或 False 两个值之一。
 
一般情况也可以变量数组
 
Boolean partOK
Boolean A(10) 'Boolean 型的一维数组
Boolean B(10, 10) 'Boolean 型的二维数组
Boolean C(5, 5, 5) 'Boolean 型的三维数
 
2.Byte类型  Byte 变量的范围是-128~+127。
 
Function Test
Byte A(10) 'Byte 型的一维数组
Byte B(10, 10) 'Byte 型的二维数组
Byte C(5, 5, 5) 'Byte 型的三维数组
Byte test_ok
test_ok = 15
Print "Initial Value of test_ok = ", test_ok
test_ok = (test_ok And 8)
If test_ok <> 8 Then
Print "test_ok high bit is ON"
Else
Print "test_ok high bit is OFF"
End If
Fend
 
3.UByte 同用法,只是0-255的范围
 
4.UInt32/Int32 范围为4个字节
 
5.UInt64/Int64  范围为8个字节
 
6.Double 范围为8个字节是小数表示。
 
7.Real 实数范围为4个字节
 
8.String 字符串变量
 
String 使用示例
String password$
String A$(10) 'String 型一维数组
String B$(10, 10) 'String 型二维数组
String C$(5, 5, 5) 'String 型三维数组
Print "Enter password:"
Input password$
If UCase$(password$) = "EPSON" Then
 Call RunMaintenance
Else
 Print "Password invalid!"
EndIf
 
9.Integer /Short 2个字节整数  整数型变量的范围为-32768~32767
 
10.Ushort 2个字节整数  整数型变量的范围为0~65535.
 
11.Global全局变量
 
Global [Preserve] 数据类型变量名 [(数组变量的***大下标)] [, 变量名 [(数组变量的***大下标)]...]来源    网络
                更多详情:爱普生机器人               

分享到: 


 

联系热线:15900626417 联系人:周经理 联系地址:上海市嘉定区南翔镇众仁路399号B座20楼2007-2012室

技术和报价服务:星期一至星期六8:00-22:00 爱普生机器人服务商

返回
顶部