没有合适的资源?快使用搜索试试~ 我知道了~
首页CANape脚本编写语言介绍
资源详情
资源评论
资源推荐

User Manual
CANape CASL
Calculation and Scripting Language
Version 1.2
English

Imprint
Vector Informatik GmbH
Ingersheimer Straße 24
D-70499 Stuttgart
Vector reserves the right to modify any information and/or data in this user documentation without notice. This documentation nor any of
its parts may be reproduced in any form or by any means without the prior written consent of Vector. To the maximum extent permitted
under law, all technical data, texts, graphics, images and their design are protected by copyright law, various international treaties and
other applicable law. Any unauthorized use may violate copyright and other applicable laws or regulations.
Copyright 2015, Vector Informatik GmbH. Printed in Germany.
All rights reserved.

User Manual CANape CASL Contents
© Vector Informatik GmbH Version 1.2 - I -
Contents
1 Introduction 3
1.1 Objective 4
1.2 Vector Product Reference 4
1.3 CASL Scripting Language in CANape 4
1.4 Prior Knowledge 4
1.5 General Process 5
1.6 About This User Manual 5
1.6.1 Certification 6
1.6.2 Warranty 6
1.6.3 Support 6
1.6.4 Trademarks 6
2 Basic Information 7
2.1 Applications for Functions and Scripts 8
2.2 What Are Functions 8
2.3 What Are Scripts 10
2.4 Differences Between Functions and Scripts 11
2.5 Functions Editor 12
2.6 Additional Definitions 13
2.6.1 Variable Types 13
2.6.2 Arguments and In/Out Parameters (of Functions) 15
2.6.3 Comments 16
2.6.4 Taking Upper and Lower Case Into Account 16
2.6.5 Predefined Function Groups and Code Blocks of CANape 16
2.7 General System Limits 18
3 Syntax 19
3.1 Differences Between C Programming and CASL 20
3.2 Numbers and Characters 20
3.2.1 Data Types and Value Ranges 20
3.2.2 Parameter Types for Predefined Functions 21
3.2.3 Constants 21
3.2.4 Arrays 22
3.2.5 Strings 23
3.2.6 Placeholders 23
3.3 Operators 25
3.4 Control Structures (Statements) 26
4 Functions, Scripts, and Variables in CANape 29
4.1 Functions 30
4.1.1 Writing the Functions 30
4.1.2 Saving and Forwarding Functions (Exporting/Importing) 31
4.1.3 Commissioning or Instantiating Functions 32
4.1.4 Example Functions 43
4.1.5 Global Function Library 45
4.1.6 Integrating External Function Libraries 46

User Manual CANape CASL Contents
© Vector Informatik GmbH Version 1.2 - II -
4.1.7 Debugging of Functions 47
4.2 Scripts 50
4.2.1 Writing the Scripts 50
4.2.2 Saving and Forwarding Scripts (Exporting/Importing) 51
4.2.3 Task Manager 52
4.2.4 Call-up of Scripts 53
4.2.5 Script Behavior When CANape is Running 58
4.2.6 Debugging of Scripts 58
4.2.7 Example Scripts 59
4.3 Variables 61
4.3.1 Creating a Global Variable 61
4.3.2 Setting a Global Variable to a Defined Value 61
4.3.3 Setting a Local Variable to a Defined Value 63
4.3.4 Inserting a Device Variable 66
5 General Tips 67
5.1 Proper Terminating of Functions and Scripts 68
5.2 Access to System Information 68
6 Addresses 70
7 Glossary 71
8 Index 72

User Manual CANape CASL Introduction
© Vector Informatik GmbH Version 1.2 - 3 -
1 Introduction
In this chapter you will find the following information:
1.1 Objective page 4
1.2 Vector Product Reference page 4
1.3 CASL Scripting Language in CANape page 4
1.4 Prior Knowledge page 4
1.5 General Process page 5
1.6 About This User Manual page 5
Certification
Warranty
Support
Trademarks
剩余75页未读,继续阅读
















VectorStudy
- 粉丝: 42
- 资源: 58
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- ARM Cortex-A(armV7)编程手册V4.0.pdf
- ABB机器人保养总结解析.ppt
- 【超详细图解】菜鸡如何理解双向链表的python代码实现
- 常用网络命令的使用 ipconfig ping ARP FTP Netstat Route Tftp Tracert Telnet nslookup
- 基于单片机控制的DC-DC变换电路
- RS-232接口电路的ESD保护.pdf
- linux下用time(NULL)函数和localtime()获取当前时间的方法
- Openstack用户使用手册.docx
- KUKA KR 30 hA,KR 60 hA机器人产品手册.pdf
- Java programming with JNI
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0