lcd+1

private void log(String msg)
{
string BlockLogs="LCD显示器(LCDxsq) kbc-logs 1";//写字板的全名,不能有重名块
IMyTextPanel TextPanel = GridTerminalSystem.GetBlockWithName(BlockLogs) as IMyTextPanel;
if(TextPanel!=null)
{
String prefix = TextPanel.GetPublicText();
prefix+="\n"+msg;
TextPanel.WritePublicText(prefix);
}
}
////写字板log-清除
void Main(string argument)
{
cleanLog();
}