-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAckGlCall.ts
More file actions
25 lines (22 loc) · 1.07 KB
/
AckGlCall.ts
File metadata and controls
25 lines (22 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { IOperationOrSignal } from '../../Interfaces/IOperationOrSignal.js';
import { IOperationOrSignalDirectionWrapper } from '../../Interfaces/IOperationOrSignalDirectionWrapper.js';
import { Direction } from '../../Enums/Direction.js';
import { SystemFunctionBlockCall } from './Base/SystemFunctionBlockCall.js';
export class AckGlCall extends SystemFunctionBlockCall {
constructor(
instanceName: string,
ackGlob: IOperationOrSignal | null = null,
eno: IOperationOrSignal | null = null,
) {
super('ACK_GL', instanceName, eno);
this.iface['ACK_GLOB'] = new IOperationOrSignalDirectionWrapper(ackGlob, Direction.Input);
this.additionalSafetyTemplateValues = `
<TemplateValue Name="f_user_card" Type="Cardinality">1</TemplateValue>
<TemplateValue Name="f_image_card" Type="Cardinality">0</TemplateValue>
<TemplateValue Name="codedbool_type" Type="Type">DInt</TemplateValue>
`;
for (const w of Object.values(this.iface)) {
if (w.operationOrSignal !== null) this.children.push(w.operationOrSignal);
}
}
}