Project

General

Profile

Bug #724

南昌line3# EHMI 电力专业刀闸 控制联锁脚本判断-禁止控制 弹出框会提示乱码

Added by lq Du about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
lq Du
Start date:
08/20/2020
Due date:
% Done:

0%

Estimated time:

Description

在DO表内 控制许可脚本配置 /data/script下 .lua文件名

.LUA测试文件脚本如下

lock01=dac.getdval("CDMS_KGA01_B02")
if lock01==0 then
    dac.setresult(0,'联锁允许控制')
else
    dac.setresult(1,'联锁禁止控制')
end


Files

Snipaste_2020-08-21_09-52-57.png (38.5 KB) Snipaste_2020-08-21_09-52-57.png lq Du, 08/21/2020 10:25 AM
Snipaste_2020-08-21_10-28-26.png (4.83 KB) Snipaste_2020-08-21_10-28-26.png lq Du, 08/21/2020 10:28 AM
UTF8Tran2GB2312.exe_ (206 KB) UTF8Tran2GB2312.exe_ shixun yan, 09/28/2020 07:03 PM

Related issues

Related to ISCS#FEP - Bug #731: 使用控制联锁脚本的结果时,ehmi弹出框会显示乱码Resolved08/25/2020

Actions

History

#1

Updated by xiangyang li about 4 years ago

  • Related to Bug #731: 使用控制联锁脚本的结果时,ehmi弹出框会显示乱码 added
#2

Updated by xiangyang li about 4 years ago

  • Status changed from New to In Progress
#3

Updated by lq Du about 4 years ago

  • Status changed from In Progress to Resolved

@fzc 20200907测试结束

#4

Updated by zhixue wei about 4 years ago

因为lua脚本文件使用UTF8编码格式,此编码方式底层不支持。
解决办法:用Notepad打开lua脚本文件,选择‘编码’->'使用ANSI‘,这时候文件中的中文会变成乱码,将这些乱码删除,再重新输入中文,保存文件。

#5

Updated by shixun yan about 4 years ago

因为lua脚本文件太多,写了一个小tool可以将UTF-8编码自动转成GB2312,请在附件里面下载使用.

Also available in: Atom PDF